$deleteRole

Deletes a role.

Syntax

$deleteRole[Role ID]

Parameters

  • Role ID (Type: Snowflake || Flag: Required): The role to delete.

Permissions

Required permissions that the bot must have for this function to work properly:

  • manageroles

Example

$nomention
$deleteRole[$findRole[$message]]
Successfully deleted $roleName[$findRole[$message]]
!example Cool Role Successfully deleted Cool Role

example

How $findRole[], $roleName[] and $message works?