String Select Option

BlockAdvanced Messages

Option item for a String Select component.

Inputs

LabelRequired

Visible label for this option.

Example: Ant

ValueRequired

Value returned when this option is selected.

Example: ant

Description

Optional description for this option.

Example: (best option)

Emoji

Optional emoji for this option. Accepts a standard Unicode emoji or Discord custom emoji.

Default

Whether this option is selected by default.

Optionstruefalse

Where it goes

This block can only be placed inside Action Row, Modal Label or String Select.

Build a bot using blocks like String Select Option

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_interaction_select_option
  • Can only be placed inside advmsgcmp_layout_actionrow (children), modalcmp_layout_label (component), advmsgcmp_interaction_select_string (options).

Inputs

FieldInventScript nameValue
Labellabele.g. "Ant"
Valuevaluee.g. "ant"
Descriptiondescriptione.g. "(best option)"
Emojiemoji
Defaultdefault_"true", "false"

Example InventScript

advmsgcmp_layout_actionrow(Args{
	children: func() {
		advmsgcmp_interaction_select_option(Args{label: "Ant", value: "ant"})
	},
})

More advanced messages blocks