Building
Buttons, menus and modals
Interactive components and the actions you can attach to them.
Two pieces must match
An interactive message contains a button or menu. A separate trigger handles the interaction. The Custom ID connects them; the visible label does not. A link button opens a URL and does not run a Button Click trigger.
Example: a help button
Add a button inside a Reply or Send Message block's message editor.
Set its label to “Help” and Custom ID to
help_panel.Add a Button Click trigger with Button ID
help_panel.Connect it to Reply with a short explanation and Ephemeral enabled.
Publish and click the newly sent message in Discord.
Menus and forms
A menu needs its own Custom ID and valid choices. Match that ID with Dropdown Select. Use Show Modal to open a form; match its Modal ID with Modal Submit to process the answers. Opening a form and handling its submission are different interactions.
Timing and layout
Acknowledge an interaction promptly. Use Defer Reply for slow work, but do not defer an interaction you intend to use to open a modal: opening the modal is itself the initial response. Put new buttons and menus in the message editor; the old standalone component blocks do not send them. See [Component recipe](/docs/flow-recipes).