New Slash Option (Expression) — DiSky

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

Syntax

[a] new %types.optiontype% [slash] option (named|with [the] name) %text% with [the] desc[ription] %text%

Description

Creates an option of the given Discord type (string, integer, number, boolean, user, channel, role, mentionable, attachment). It is optional and without autocomplete until you say otherwise. For an option typed by a Skript type (a member, a colour, an enum with its choices), see 'a new typed ... option'.

Examples

set {_opt} to a new string option named "reason" with description "Why"
set required of {_opt} to true
add {_opt} to options of {_cmd}

View source