$modifyChannelPerms
Modifies a channels permissions. You can add, and deny them based off of the given channel ID. `+` Will add a permission and `-` will remove a permission.

FUNCTION USAGE

  • $modifyChannelPerms[channelID;+perm,-perm]
  • $modifyChannelPerms[channelID;+perm,-perm;userID]
  • $modifyChannelPerms[channelID;+perm,-perm;roleID]

Properties:

channelID - The ID of the channel to modify. +perm - The permission to add. Separate with commas. -perm - The permission to remove. Separate with commas. userID - The ID of the user to modify permissions of for the defined channel. (Optional) roleID - The ID of the role to modify permissions of for the defined channel. (Optional)

Permissions(10):

  • addreactions
  • sendmessages
  • viewchannel
  • embedlinks
  • useexternalemoji
  • attachfiles
  • sendttsmessage
  • readhistory
  • managechannel
  • managemessages

Example:

1
bot.Command({
2
name: "create",
3
code: `
4
$modifyChannelPerms[$channelID[$toLowercase[$username[$mentioned[1]]];+viewchannel;+sendmessages;$mentioned[1]]
5
$createChannel[$username[$mentioned[1]];text]
6
`
7
})
Copied!
Last modified 4mo ago