$modifyRolePerms

FUNCTION USAGE

  • $modifyRolePerms[roleID;-perm]
  • $modifyRolePerms[roleID;+perm]
  • $modifyRolePerms[roleID;-perm;+perm;...etc]

Properties:

roleID - The ID of the role to modify. -perm - Removes a permission from the role. +perm - Adds a permission to the role.

Permissions:

  • admin
  • manageserver
  • kick
  • addreactions
  • ban
  • manageroles
  • managechannels
  • managewebhooks
  • managemessages
  • viewauditlog
  • managenicknames
  • sendmessages
  • readmessages
  • movemembers
  • manageemojis
  • viewguildinsights
  • mentioneveryone
  • embedlinks
  • viewchannel
  • createinvite
  • mutemembers
  • speak
  • deafenmembers
  • attachfiles
  • connect
  • stream
  • usevad
  • externalemojis
  • sendtts
  • changenickname
  • priorityspeaker

Example 1: Modifying a role.

bot.Command({
name: "test",
code: `
$modifyRolePerms[763474115255336972;+sendtts;-usevad]
`
})
Copy link