Number Option

The number option allows command users to input a numerical value to be sent with the interaction. This can be any form of numerical value such as; 1, 1.6, etc.

Example Inputs

Below are some examples of valid and invalid inputs for the Number option.

ValidInvalid

1

-1

2

+1

1.5

Number Option Config

Each option block comes with a set of options for you to configure. These are the following:

LabelTypeDetails

Name

String

The name for the option. This name determines the ending value for the option variable: {option_optionName}.

Description

String

A description for the option. This will be displayed when the user has the option active / focused while running the command.

Required

Boolean

A true of false Boolean to set the option to required. If required the command executor will need to provide a value for this option.

Preset Choices

Integer

Define a list of pre-set options for the command user to choose from. This will disable the ability for the user to enter custom values and force them to select one of the pre-defined values from a dropdown list.

Last updated