$modifyChannelPerms
$modifyChannelPerms will modify a given channel’s permission overrides.
Usage
$modifyChannelPerms[channelID;roruID;...perms]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| channelID | number | The channel ID of which you’re trying to modify its permissions. | true |
| roruID | number | The ID of an user or role. ( $guildID represents the @everyone role. ) | true |
| …perms | string | The permissions that will be changed. | 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 allow @everyone to send messages and add reactions in the current channel:
1client.command({2 name: "modifyChannelPerms",3 code: `4 $modifyChannelPerms[$channelID;$guildID;+sendmessages;+addreactions]5 `6});