Skip to content

$modifyRole

$modifyRole will modify a given role.

Usage

$modifyRole[guildID;roleID;...data]

Parameters

FieldTypeDescriptionRequired
guildIDnumberThe guild ID of where the role is located in.true
roleIDnumberThe role ID to modify.true
…datastring, objectNew role data.true

Example(s)

This will edit an existing role / change its name to “Awesome!“:

1
client.command({
2
name: "modifyRole",
3
code: `
4
$modifyRole[$guildID;roleID;{
5
"name": "Awesome!"
6
}]
7
`
8
});