$modifyRole
Modify a role's name, color, hoisting status and mentionability in the the defined guild or the guild the command is executed in.

FUNCTION USAGE

  • $modifyRole[guildID;roleID;name]
  • $modifyRole[guildID;roleID;name;color]
  • $modifyRole[guildID;roleID;name;color;hoisted]
  • $modifyRole[guildID;roleID;name;color;hoisted;mentionable]

Properties:

guildID - The ID of the guild where the role is to modify. roleID - The ID of the role to modify. name - The new name of the role. Leave the field blank to leave name untouched. color - Define a HEX color to change the color of the role. Leave the field blank to leave color untouched. hoist - Define yes to hoist the role. Define no to de-hoist the role. Leave blank to leave untouched. mentionable - Define yes to make the role mentionable. Defined no to remove mentionability. Leave blank to leave untouched.

Example 1: Modifying a role.

1
bot.Command({
2
name: "test",
3
code: `
4
$modifyRole[763474115255336972;NewName;FF0000;yes;yes]
5
`
6
})
Copied!

Example 2: Modifying just a role name.

1
bot.Command({
2
name: "test",
3
code: `
4
$modifyRole[763474115255336972;NewName;;;]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: