$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 a built-in cooldown to help prevent excessive usage.

PropertyValue
⏱️ Duration1 minute
🆔 Tracked ByServer
🌐 ScopeRoleupdate

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

💎 Tier 3+ servers bypass this cooldown. See Premium Perksopen in new window.