Usage
Has Role
This function takes three parameters: ‘target’, which is the ID of the player who you want to get the role information that should be checked, ‘role’, which is either a single integer or a table of integers representing the role(s) to be checked, and ‘stack’, which is an optional boolean value that determines whether the function should return all found roles in a table or just the first found role. It returns either a boolean value indicating whether the player has the specified role or a table of all roles that were found, depending on the value of ‘stack’.
- serverId:
integer
- The server ID of the player you want to retrieve the discord info for.
- role:
integer
ortable
- This function has a built in option where you can check for multiple discord roles in a table or just one.
- Use role id’s to check
- This function has a built in option where you can check for multiple discord roles in a table or just one.
- stack:
boolean
- If enabled and the roles is a table, then it will return a table of all found roles that were found in the table.
Returns: boolean
or table