$modifyChannelPerms

Modifies a channel's permissions.

Usage

$modifyChannelPerms[channelID;permissions;userID/roleID]

Breakdown

  • channelID - The channel to change the permissions for.
  • permissions - The permissions to add/remove. + means allow, - means deny.
  • userID/roleID - The role or user to modify the permissions for. Use $guildID for @everyone.

Example

Lock:

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

example1

Unlock:

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

example2