Skip to main content

Overview

Button roles attach a persistent button to any message sent by slug. When a member clicks it, the role is toggled β€” added if they don’t have it, removed if they do. Multiple buttons can coexist on the same message alongside button messages. Each button gets a unique code that you use to remove it later.
Buttons can only be added to messages sent by slug.

Add a button role

Button styles

Remove a button role

Use the code returned when the button was added.

List button roles

Shows all button roles in the server with their codes, labels, roles, and styles.

Full example