Skip to content

$modifyRolePerms

$modifyRolePerms will modify a given role’s permissions.

Usage

$modifyRolePerms[guildID;roleID;...perms]

Parameters

FieldTypeDescriptionRequired
guildIDnumberThe guild ID of where the role is located in.true
roleIDnumberRole ID of the role which will be modified. / $guildID represents the @everyone roletrue
…permsstringPermissions 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.

1
client.command({
2
name: "modifyRolePerms",
3
code: `
4
$modifyRolePerms[$guildID;$guildID;+sendmessages;+addreactions]"
5
}]
6
`
7
});