$modifyRole

Modifies a role.

Usage

$modifyRole[roleID;(roleName;colorHex;hoisted;mentionable)]

🧙‍♂️ You can use !unchanged as a argument to leave the setting as-is.

Parameters

  • roleID (Type: Snowflake || Flag: Required): The ID of the role to modify.
  • roleName (Type: String || Flag: Optional): New role name.
  • colorHex (Type: Color || Flag: Optional): New role color.
  • hoisted (Type: Bool || Flag: Optional): Whether the role should be displayed separately or not.
  • mentionable (Type: Bool || Flag: Optional): Whether the role should be mentionable by everyone or not.

Example

$nomention
$argsCheck[>2;❌ Please provide the needed arguments! Usage: `!role-name (role) (newRoleName)`]
$onlyPerms[manageroles;❌ You are missing the manage_roles permission!]
$modifyRole[$findRole[$message[1]];$replaceText[$message;$message[1];;1];!unchanged;!unchanged;!unchanged]
$description[✅ Changed role name of <@&$findRole[$message[1]]>]

example