Skip to content

$modifyChannelPerms

$modifyChannelPerms will modify a given channel’s permission overrides.

Usage

$modifyChannelPerms[channelID;roruID;...perms]

Parameters

FieldTypeDescriptionRequired
channelIDnumberThe channel ID of which you’re trying to modify its permissions.true
roruIDnumberThe ID of an user or role. ( $guildID represents the @everyone role. )true
…permsstringThe 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:

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