Message Container

BlockAdvanced Messages

Holds text, thumbnails, galleries, and other content components.

Inputs

Container Children

Container Children

Holds blocks: Text, Section, Action Row, Separator, Gallery

Accent Color

Hexadecimal color code for the accent color of the container.

Example: #0099ff

Spoiler

Spoiler

Example: true

Where it goes

This block can only be placed inside Respond to Interaction with Advanced Message or Send Advanced Message.

Build a bot using blocks like Message Container

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

ID: advmsgcmp_layout_container
  • Can only be placed inside respond_interaction_advanced (message_components), send_advanced_message (message_components).

Inputs

FieldInventScript nameValue
Container Childrenchildrenblocks: func() { ... } with only advmsgcmp_content_*, advmsgcmp_layout_actionrow*, advmsgcmp_layout_section*, advmsgcmp_layout_gallery*, advmsgcmp_layout_separator* blocks
Accent Coloraccent_colore.g. "#0099ff"
Spoilerspoilere.g. "true"

Example InventScript

respond_interaction_advanced(Args{
	message_components: func() {
		advmsgcmp_layout_container(Args{accent_color: "#0099ff", spoiler: "true"})
	},
})

More advanced messages blocks