Skip to content

$removeRoles

$removeRoles will remove one or multiple roles from a given member.

Usage

$removeRoles[guildID;userID;reason?;...roleIDs]

Parameters

FieldTypeDescriptionRequired
guildIDnumberThe guild ID of where the user and role is located in.true
userIDnumberThe ID of the user whose role will be removed.true
reason?stringThe reason that will be displayed in the guild’s audit logs.false
…roleIDsnumberThe IDs of the roles that will be removed.true

Example(s)

This will remove given roles from yourself (the roles must be below the bot’s highest role):

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