$removeRole
$removeRole will remove a given role from a given member.
Usage
$removeRole[guildID;userID;roleID;reason?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| guildID | number | The guild ID of where the user and role is located in. | true |
| userID | number | The ID of the user whose role will be removed. | true |
| roleID | number | The ID of the role that will be removed. | true |
| reason? | string | The 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):
1client.command({2 name: "removeRole",3 code: `4 $removeRole[$guildID;$authorID;roleID;Some reason.]`5});