Channel Select

BlockAdvanced Messages

Channel select menu for advanced messages and modals.

Inputs

Custom IDRequired

Custom ID for this select component (1-100 chars).

Example: reason_select

Placeholder

Placeholder text when no value is selected.

Example: Choose an option

Min Values

Minimum selected values (0-25).

Example: 1

Max Values

Maximum selected values (1-25). Defaults to 1.

Example: 1

Disabled

Whether this select is disabled.

Optionstruefalse
Channel Types

Optional channel types to allow in the select menu.

OptionsTextVoiceCategoryAnnouncementStageForumMedia

Where it goes

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

Build a bot using blocks like Channel Select

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

Inputs

FieldInventScript nameValue
Custom IDcustom_ide.g. "reason_select"
Placeholderplaceholdere.g. "Choose an option"
Min Valuesmin_valuese.g. "1"
Max Valuesmax_valuese.g. "1"
Disableddisabled"true", "false"
Channel Typeschannel_types"Text", "Voice", "Category", "Announcement", "Stage", "Forum", "Media"

Example InventScript

advmsgcmp_layout_actionrow(Args{
	children: func() {
		advmsgcmp_interaction_select_channel(Args{custom_id: "reason_select"})
	},
})

More advanced messages blocks