Slash Command Autocomplete

Provide values for a slash command autocomplete. This flow triggers any time the value of the autocomplete option is changed.

NOTE

This flow allows you to set the options for a slash command autocomplete field, as the user types. Use the Autocomplete Response Interaction block to provide the user with up to 25 options that match their selection.

NOTE

If you have several autocomplete options in one slash command use If Statement blocks to determine which part of the flow to run based on the Option Name output.

This trigger is based on Discord event InteractionCreate.

Inputs

Parent Flow

The flow that the autocomplete option(s) you want to respond to are in.

Outputs

Interaction ID

The interaction ID of the interaction.

Example: 123456789012345678

Interaction Token

The token of the interaction.

Example: abCdeF123gHiJkLmNoPqRsTuVwXyZ0123456789

Server ID

The server ID where the autocomplete interaction is being run.

Example: 123456789012345678

Channel ID

The server ID where the autocomplete interaction is being run.

Example: 123456789012345678

Executing User ID

The ID of the user that is running the command with the autocomplete option.

Example: 123456789012345678

Context Type

The context type of the command.

Example: Server, DM

App Permissions

What permissions the bot application has in the context type.

Example: 2251799813685247

Command Name

The command name.

Example: foods

Subcommand Name

The subcommand name.

Example: search

Option Name

The name of the autocomplete option.

Example: search-query

Option Value

The value of the autocomplete option.

Example: pizza