🗣️ create interactible button with label (label) color (type) emoji (emoji) enabled? (enabled) do (statements)
In Discord → Interactions → Buttons
Add a clickable button to a message.
Requires the following blocks to be present in the project: discord login
Parameters
Parameter name | Parameter type | Required? | Description |
---|---|---|---|
label | String | The text to show on this button. At least an emoji or a label must be supplied. | |
type | any | ✓ | The type of button to show - this mainly determines its color.![]() |
emoji | emoji | An emoji to attach to this button. At least emoji or a label must be specified.![]() |
|
enabled | Boolean | ✓ | Whether this button is clickable |
statements | statements… | ✓ | The statements to execute when this button is clicked. These will not execute if the bot is restarted; use create button with ID instead. |
Output
interaction - The button, built to specifications.