Skip to content

$getRoleColor

$getRoleColor will return the given role’s color.

Usage

$getRoleColor[roleId;guildID?]

Parameters

FieldTypeDescriptionRequired
roleIdnumberThe ID of the role you want the color to be returned of.true
guildID?numberThe ID of the guild where the role exists in.false

Example(s)

This will return the role ID of your highest role:

1
client.command({
2
name: "getRoleColor",
3
code: `
4
$getRoleColor[$userHighestRole]
5
`
6
});