$editChannelPerms

Changes permission for mentioned users/roles in this particular channel.

Usage

$editChannelPerms[channel ID;userID/RoleID;permission;...]

Parameters

  • channel ID (Type: Snowflake || Flag: Required): place the ID of the channel to which the roles are modified.
  • userID/RoleID (Type: Snowflake || Flag: Emptiable): place the ID of the role or user whose permissions will be modified.
  • permission (Type: Permission || Flag: Required): the permission(s) to be modified.
    • + - set + to add permission.
    • - - set - to remove the permission.

🧙🏻‍♂️ You can see the available permissions here in Permissions

Example

$nomention
$onlyPerms[managechannels; ❌ You need the manage_channels permission to use that!]

$editChannelPerms[$channelID;$mentionedRoles[1];-sendmessages]
✅ Now the role cannot send messages

image