Custom Command
FunctionsRole Functions

$modifyRolePerms

Modifies the permissions of a specified role.

Usage:

$modifyRolePerms[roleID;+perm1;-perm2;/perm3;+perm4;...]

Parameters:

  • roleID: The ID of the role to modify.

  • +perm1;-perm2;/perm3;+perm4;...: A semicolon-separated list of permission modifications.

    • Use + to grant a permission.
    • Use - to deny a permission.
    • Use / to reset a permission to its default value.

Example:

$modifyRolePerms[$roleID[muted];-sendmessages;]

This example modifies the permissions of the role named "muted" so that members with this role will not be able to send messages in the server.

Permissions List

Refer to this list for a complete overview of available permission names.

Helpful Functions

  • $roleID: Returns a role ID based on its name.

Related Functions

Important Notes

  • Use a + sign to grant a specific permission.
  • Use a - sign to deny a specific permission.
  • Use a / sign to reset a permission to its default state (neither granted nor denied).

Function Difficulty: Difficult

Tags: Role Modify Modify Role Edit Role Change Role Permissions

Function Cooldown

This function has built-in cooldown. Why? Read more about cooldowns here.

  • Cooldown: 1 minute
  • Tracked By: Server
  • Type: roleupdate

Functions with the same type share cooldowns based on the same Tracked By value.

On this page