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

PropertyValue
⏱️ Duration1 second
🆔 Tracked ByServer
🌐 ScopeCache

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.