Custom Command
FunctionsRole Functions

$takeRoles

Takes away a role from a user.

Usage:

$takeRoles[userID;roleID 1;roleID 2;roleID 3;...]
  • userID: The ID of the user to take the roles from.
  • roleID 1;roleID 2;roleID 3;...: A semicolon-separated list of role IDs to remove from the user.
Member
9/5/2026
!!exec $takeRoles[$authorID;$roleID[Muted]]

Example Breakdown:

This example takes the "Muted" role from the user who executed the command.

  • !!exec: Executes the custom command function.
  • $takeRoles[...]: The function that removes roles.
  • $authorID: Gets the ID of the command executor. (See here for more info)
  • $roleID[Muted]: Gets the ID of the role named "Muted". (See here for more info)

Used Functions

  • $roleID: Returns a role ID based on the role's name.
  • $authorID: Returns the ID of the command executor.

Related Functions

  • $giveRoles: Gives roles to a user.
  • $setRoles: Removes all roles from a user and then gives them the specified roles.
  • $toggleRoles: Toggles roles on a user (adds if they don't have it, removes if they do).

Function Difficulty: Medium

Function Cooldown

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

  • Cooldown: 6 seconds
  • Tracked By: User ID
  • Type: userupdate

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

On this page