Role Removed

Event triggerMembers

Triggers when a role is removed from a member.

This trigger requires the bot to have the VIEW_AUDIT_LOG permission.

Outputs

User ID

The ID of the member who lost the role

Example: 123456789012345678

User Mention

A mention for the member who lost the role

Example: <@123456789012345678>

Server ID

The ID of the server

Example: 123456789012345678

Role ID

The ID of the first role removed

Example: 123456789012345678

Role Name

The name of the first role removed

Example: Moderator

Role IDs

Comma-separated IDs of all roles removed

Example: 123456789012345678,234567890123456789

Role Names

Comma-separated names of all roles removed

Example: Moderator,VIP

Performed By User ID

The ID of the user who removed the role

Example: 345678901234567890

Build a bot using triggers like Role Removed

Use this trigger in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: role_removed

Outputs

FieldInventScript nameValue
User IDuser_ide.g. "123456789012345678"
User Mentionuser_mentione.g. "<@123456789012345678>"
Server IDserver_ide.g. "123456789012345678"
Role IDrole_ide.g. "123456789012345678"
Role Namerole_namee.g. "Moderator"
Role IDsrole_idse.g. "123456789012345678,234567890123456789"
Role Namesrole_namese.g. "Moderator,VIP"
Performed By User IDperformed_by_user_ide.g. "345678901234567890"

Example InventScript

var trigger = role_removed()

func main() {
	send_text_message(Args{channel_id: "CHANNEL_ID", message_content: "User ID: " + trigger.user_id})
}

More members triggers