$modifyRolePerms
$modifyRolePerms
will modify a given role’s permissions.
Usage
$modifyRolePerms[guildID;roleID;...perms]
Parameters
Field | Type | Description | Required |
---|---|---|---|
guildID | number | The guild ID of where the role is located in. | true |
roleID | number | Role ID of the role which will be modified. / $guildID represents the @everyone role | true |
…perms | string | Permissions to modify. | true |
Description | |
---|---|
- | Deny a specific permission to someone or something. |
+ | Allow a specific permission to someone or something. |
/ | Reset a specific permission to its default state. |
You can find all permissions here.
Example(s)
This will edit a existing role’s permission and allow the “@everyone” role to send messages and add reactions.
1client.command({2 name: "modifyRolePerms",3 code: `4 $modifyRolePerms[$guildID;$guildID;+sendmessages;+addreactions]"5 }]6 `7});