$usersWithRole
Returns a list of users who have the given role.
Usage
$usersWithRole[roleID;separator;type]
- roleID - (Optional) default value: (users without any roles). The ID of a role you want to retrive users with.
- separator - (Optional) default value:
#NL#
(newline). The separator used for creating user list. - type - (Optional) default value:
tag
. Can betag
,username
,id
ormention
.
Example
Using $usersWithRole
How to use $usersWithRole
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.