interactionText := respond_interaction_text(Args{message_content: "Hello world!"})
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Message ID: " + interactionText.message_id,
})
Respond to Interaction with Text
Send a text response to an interaction (slash command, button, etc.).
- Only works in flows started by an interaction: a slash command, button, dropdown, modal or context menu.
Inputs
Text content of the response.
Example: Hello world!
Choose which mention types should notify users. Empty only pings users; None disables all pings. None overrides other selections. Unselected mentions are displayed without pinging.
For component interactions and modals opened from a component, edit the original message instead of sending a new interaction response. Ignored otherwise.
Only visible to the user who triggered the interaction. Only applies to the initial response.
Outputs
ID of the sent or edited interaction response message.
Use this block 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
respond_interaction_text- Only works in flows started by an interaction trigger (slash commands, buttons, dropdowns, modals, context menus).
Inputs
| Field | InventScript name | Value |
|---|---|---|
| Message Content | message_content | e.g. "Hello world!" |
| Allow Mentions | allow_mentions | "None", "Everyone/Here", "Roles", "Users" |
| Update Original Message | update_original_message | "true", "false" |
| Ephemeral | ephemeral | "true", "false" |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Message ID | message_id |