Skip to content
Moderation getRoleTertiaryColor

$getRoleTertiaryColor

The function $getRoleTertiaryColor[] retrieves the third color of a holographic role. Servers with at least 3 boosts can give roles several colors; $getRoleColor only returns the primary one.

This function does not exist in BibiScript: it is specific to Bot Creator.

Syntax

$getRoleTertiaryColor[roleID]

Parameters

Parameter Description
roleID The Discord ID of the role. A value that is not a positive number raises Invalid role ID.; an ID that is not a role of the server raises Role not found.

Return Value

  • Type: String
  • The tertiary color as six uppercase hexadecimal digits RRGGBB, without a leading #.
  • An empty string when the role has no tertiary color (single-color role, or a server without the feature).

Examples

Show all the colors of a role

$var[roleID;$roleID[VIP]]
Primary: $getRoleColor[$var[roleID]]
Secondary: $getRoleSecondaryColor[$var[roleID]]
Tertiary: $getRoleTertiaryColor[$var[roleID]]

Notes

  • A role has a tertiary color only when it is holographic (Discord fixes the three colors of that style).
  • Use $setRoleColors to change the colors of a role.

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.