$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.
| Property | Value |
|---|---|
| ⏱️ Duration | 1 second |
| 🆔 Tracked By | Server |
| 🌐 Scope | Cache |
Functions with the same Scope share cooldowns based on the same
Tracked Byvalue.
💎 Tier 3+ servers bypass this cooldown. See Premium Perks.