$setRoles
$setRoles
will set a member’s roles.
Usage
$setRoles[guildID;memberID;reason?;...roleIDs]
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:
1client.command({2 name: "setRoles",3 code: `4 $setRoles[$guildID;$authorID;Some reason.;roleID1;roleID2;roleID3;....]`5});