$usersWithRole
$usersWithRole
will return the users who have a specific role.
Usage
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 roleID: