$userRoles
Returns the list of roles from a user.
Usage
$userRoles[userID;type;separator]
- userID - (Optional) default value:
$authorID
. The ID of a user you want to return roles from. - type - (Optional) default value:
names
. Can beids
,names
ormentions
. What format of returned roles do you want. - separator - (Optional) default value:
,
. The separator used for creating roles list.
Example
Using $userRoles
How to return roles from message author
Cache
This function works on the bot's cache to find members. If the user is not cached, the function will not find them. User will be cached after they trigger any command from this bot, but eventually they will get deleted.
To have all members cached, you will need Tier 5 Bot.