Skip to content

$removeRole

$removeRole will remove a given role from a given member.

Usage

$removeRole[guildID;userID;roleID;reason?]

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
roleIDnumberThe ID of the role that will be removed.true
reason?stringThe reason that will be displayed in the guild’s audit logs.false

Example(s)

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

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