Custom Command
FunctionsRole Functions

$getRoleColor

Retrieves the hexadecimal color code of a role.

Usage

$getRoleColor[roleID]

Arguments:

  • roleID: The ID of the role whose color you want to retrieve. This can be obtained using functions like $mentioned[1] or $findRole[roleName].

Example:

Let's say you want to get the color of the role with the ID 123456789012345678. You would use:

$getRoleColor[123456789012345678]

This would return the hex color code of the role, such as #FF0000 (red).

Function Difficulty: Easy

Tags: Get Role Color

Function Cooldown

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

  • Cooldown: 1 second
  • Tracked By: Server
  • Type: cache

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

On this page