New Option Choice (Expression) — DiSky

Addon: DiSky · Category: Expression

Syntax

[a] new [option] choice [(named|with name)] %string% with [the] value %string/number%

Description

Create a new slash command option choice with an unique name and a string or number value. Choices are only available for STRING, NUMBER and INTEGER slash command option type. Of course, the provided value type must be compatible with the option type (you cannot add string choice to a NUMBER option).

Examples

add new choice named "Example choice" with value 100 to choices of {_option} # it's a NUMBER option

View source