$usersWithRole
$usersWithRole
will return the users who have a specific role.
Usage
$usersWithRole[roleID;guildID?;option?;sep?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
roleID | number | The role ID. | true |
guildID? | number | The guild ID. | false |
option? | string | How to return the users 1. id (default) 2. mention | false |
sep? | string | Separator to separate multiple returned values. | false |
Example(s)
This will return the users of a specific role, make sure to replace the roleID:
1client.command({2 name: "usersWithRole",3 code: `4 $usersWithRole[roleID;$guildID;id;, ]5 `6});