Exception methods

Some methods add what I call 'exception' methods. For example, if you're setting up group-based tags and you don't want specific people or ranks to have them you can make exceptions for them.

This is only returned for the 'tagFromPass' and 'tagForGroup' methods.

:userExceptions

This method makes exceptions to the tag for the users passed in it. It only accepts 'UserIds'. It can also be chained and have however many IDs you want in it.

Arguments:

<integer> UserId ... (hoewever many UserIds you want)

Sample code:

-- Give users in the group 9231886 with at least rank 100 a rainbow roblox
-- icon tag, but exclude Roblox and Coeptus from getting it.

local methods = chatPlus:tagForGroup({
    ["groupId"] = 9231886,
    ["minimumRank"] = 100,
    ["tagColor"] = Color3.fromRGB(255,0,0),
    ["rainbow"] = true,
    ["image"] = "rbxassetid://6987182432"
})

methods:userExceptions(1,63700903)

:groupExceptions

This method can make exceptions for people in any group that's at or above the specified rank.

Arguments:

<table> {<integer> (groupId),<integer> (minimum rank)}

Sample code:

-- Give users in the group 9231886 with at least rank 100 a rainbow roblox
-- icon tag, but exclude Roblox, Coeptus, and anyone in the flamingo fan club
-- from ever getting it.

local methods = chatPlus:tagForGroup({
    ["groupId"] = 9231886,
    ["minimumRank"] = 100,
    ["tagColor"] = Color3.fromRGB(255,0,0),
    ["rainbow"] = true,
    ["image"] = "rbxassetid://6987182432"
})

methods:groupExceptions({3336691,1}):userExceptions(1,63700903)

getPriority

This is the only method non-related to exceptions but it can be somewhat helpful in specific circumstances. It will return the priority of the tag being placed on the player. The higher the priority, the further to the right it is and the lower the priority the further it is to the left. It is provided with all tag-related functions. This method is not chainable.

Arguments:

<void>

Sample code:

local methods = chatPlus:tagForGroup({
    ["groupId"] = 9231886,
    ["minimumRank"] = 100,
    ["tagColor"] = Color3.fromRGB(255,0,0),
    ["rainbow"] = true,
    ["image"] = "rbxassetid://6987182432"
})

methods:getPriority() --> <integer> lol

Last updated