$deleteRoles

Deletes the provided roles.

Usage

$deleteRoles[guildID;reason;roleIDs;...]

This function has three fields.

FieldDescriptionTypeRequired

guildID

The guild these role(s) belong to.

Snowflake

Yes

reason

The reason for deleting these roles.

String

Yes

roleIDs

The roles to delete.

Snowflake

Yes

Example

bot.commands.add({
  type: "basicCommand",
  name: "example",
  code: `$onlyIf[$hasPerm[$guildID;$authorID;manageroles]==true;Missing permissions!]
$deleteRoles[$guildID;;$mentionedRoles[1]]
Deleted role!`
})

Last updated