$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.

1
bot.Command({
2
name: "test",
3
code: `
4
$modifyRolePerms[763474115255336972;+sendtts;-usevad]
5
`
6
})
Copied!
Last modified 1mo ago
Copy link