Skip to main content

Command Argument

The Command Argument block allows you to define arguments for your slash commands. You can specify the argument name, description, and type to create interactive command interfaces.

Fields​

Name​

Here you will enter the name for your argument.

Description​

Here you will enter a description for your argument.

Type​

Here you can choose what kind of option you want to use.

List of types:​

Text: Allows the user to insert blank text.

Whole number: Allows the user to insert a whole number.

True/False: Allows the user to choose between True and False.

User: Allows the user to choose a user.

Channel: Allows the user to choose a channel.

Mentionable: Allows the user to choose a role or user.

Attachment: Allows the user to attach a file.

Choices​

Choices allow the user to select a value from a predefined set of options.

Use the plus button to add a choice and the minus button next to a choice to remove just that one. The trash button removes all choices.

Order​

Arguments show up in Discord in the order set in the Command block. Required arguments always come before optional ones.

Output​

To use the result of your option later in your flow, you will use the variable {{arg('ARGNAME')}}.

tip

ARGNAME should be replaced with the name of your chosen argument.

Loading...