$modifyChannelPerms

(deprecated)

🧙‍♂️ This command is deprecated instead better use $editChannelPerms.

Modifies a channel's permissions.

Usage

$modifyChannelPerms[channelID;permissions;userID/roleID]

Parameters

  • channelID (Type: Snowflake || Flag: Required): The channel to change the permissions for.
  • permissions (Type: Permission || Flag: Required): The permissions to add/remove. + means allow, - means deny, / means neutral permission.
  • userID/roleID (Type: Snowflake || Flag: Required): The role or user to modify the permissions for. Use $guildID for @everyone.

Example

Lock:

$nomention
$onlyPerms[managechannels;❌ You need the manage_channels permission to use that!]
✅ Successfully locked <#$mentionedChannels[1;yes]>!
$modifyChannelPerms[$mentionedChannels[1;yes];-sendmessages;$guildID]

example1

Unlock:

$nomention
$onlyPerms[managechannels;❌ You need the manage_channels permission to use that!]
✅ Successfully unlocked <#$mentionedChannels[1;yes]>!
$modifyChannelPerms[$mentionedChannels[1;yes];+sendmessages;$guildID]

example2