interactionAdvanced := respond_interaction_advanced(Args{
message_components: func() {
advmsgcmp_layout_container(Args{accent_color: "#0099ff", spoiler: "true"})
},
})
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Message ID: " + interactionAdvanced.message_id,
})
Respond to Interaction with Advanced Message
Send a Components v2 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
Components of the response.
Holds blocks: Text, Message Container, Section, Action Row, Separator, Gallery
Choose which mention types should notify users. Empty or 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_advanced- Only works in flows started by an interaction trigger (slash commands, buttons, dropdowns, modals, context menus).
Inputs
| Field | InventScript name | Value |
|---|---|---|
| Message Components | message_components | blocks: func() { ... } with only advmsgcmp_layout_*, advmsgcmp_content_* blocks |
| 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 |