$setRoles
$setRoles
will set a member’s roles.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
guildID | number | The ID of the guild where the users roles will be removed or added. | true |
memberID | number | The user ID of the guild member. | true |
reason? | string | The reason that will be displayed in the guild’s audit logs. | false |
…roleIDs | number | The Ids of the roles. | true |
Example(s)
This will either remove or add specific roles from you: