Skip to content

$setRoleColor

$setRoleColor will set a roles’ color.

Usage

$setRoleColor[roleID;color]

Parameters

FieldTypeDescriptionRequired
roleIDnumberThe ID of the role that will be modified.true
colorstringThe new (hex) color.true

Example(s)

This will change a random role’s color to red:

1
client.command({
2
name: "setRoleColor",
3
code: `
4
$setRoleColor[$randomRoleID;Red]`
5
});
1
client.command({
2
name: "setRoleColor",
3
code: `
4
$setRoleColor[$randomRoleID;ED4245]`
5
});