Skip to content

$setRoleIcon

$setRoleIcon will set the icon of a specific role.

Usage

$setRoleIcon[guildID;roleID;icon]

Parameters

FieldTypeDescriptionRequired
guildIDnumberThe ID of the guild where the role exists.false
roleIDnumberThe role ID.false
iconstringThe URL of the icon.false

Example(s)

This will change the icon of a given role to the specified icon:

1
client.command({
2
name: "setRoleIcon",
3
code: `
4
$setRoleIcon[$guildID;roleID;iconURL]
5
`
6
});