Skip to content

triggerroles

triggerroles add

Adds a role to the list of roles that should trigger the removal of other roles.

A trigger role is a role that will cause other roles to be automatically removed. So when a user is assigned the trigger role, they will lose the roles that trigger role is configured to remove.

Example

One of the administrators ran the command: /triggerrole add role: @Unsubscribe roles_to_remove: @Cool Role @Awesome Role A user is assigned the trigger role, in this case @Unsubscribe, which would cause @Cool Role and @Awesome Role to be removed from them automatically.

Parameters:

Name Type Description Default
role discord.Role

A role that should trigger the removal of other roles

required
roles_to_remove str

The roles that should be removed when the user is assigned the trigger role

required

triggerroles remove

Removes role(s) from the list of roles that should trigger the removal of other roles.

Parameters:

Name Type Description Default
role discord.Role

A role that should trigger the removal of other roles

required
roles_to_remove str

The roles that should be removed when the user is assigned the trigger role

required

triggerroles list

Displays all of the trigger roles that are currently configured.