New Dropdown (Expression) — DiSky

Addon: DiSky · Category: Expression · Since: 5.0.0-a1

Syntax

[a] new [string] drop[( |-)]down [with] [the] id %text%

Description

Creates a dropdown with the given id. Add options to it before sending it.

Examples

set {_d} to a new dropdown with id "color"
set placeholder of {_d} to "Pick a color"
add a new option with value "red" named "Red" to options of {_d}
add a new option with value "blue" named "Blue" to options of {_d}
add {_d} to components of {_message}

View source