Skip to content

$setRoles

$setRoles will set a member’s roles.

Usage

$setRoles[guildID;memberID;reason?;...roleIDs]

Parameters

FieldTypeDescriptionRequired
guildIDnumberThe ID of the guild where the users roles will be removed or added.true
memberIDnumberThe user ID of the guild member.true
reason?stringThe reason that will be displayed in the guild’s audit logs.false
…roleIDsnumberThe Ids of the roles.true

Example(s)

This will either remove or add specific roles from you:

1
client.command({
2
name: "setRoles",
3
code: `
4
$setRoles[$guildID;$authorID;Some reason.;roleID1;roleID2;roleID3;....]`
5
});