DiSky DiSky v5.0.0-b1

Slash Option

type

One argument of a slash command or subcommand: a Discord type, a name, a description, and optionally choices, autocomplete, bounds or channel types. Read its value in 'on slash command' with 'slash option "name"'.

12 syntaxesnet.itsthesky.disky5.api.commands.application.SlashOptionHolder
12 / 12

Properties

11
propertyText
[the] description of %slashoption%
%slashoption%'s description
change modes set
mentioned inCommand builders
Helpful?
propertyOptionTypesince 5.0.0-a2
[the] option type of %slashoption%
%slashoption%'s option type

The Discord type of the option.

mentioned inCommand builders
Helpful?
propertyBooleansince 5.0.0-a2
[the] required of %slashoption%
%slashoption%'s required

Whether the user has to fill this option. Required options must come before optional ones.

change modes set
mentioned inCommand builders
Helpful?
propertyBooleansince 5.0.0-a2
[the] auto complete of %slashoption%
%slashoption%'s auto complete

Whether Discord asks the bot for suggestions while the user types ('on slash completion' + 'return choices'). Only string, integer and number options; incompatible with fixed choices.

change modes set
mentioned inCommand builders
Helpful?
propertylist of Slash Choicesince 5.0.0-a2
[the] choices of %slashoption%
%slashoption%'s choices

The fixed choices (up to 25) the user picks from. Only string, integer and number options; a choice's value must match the option type.

change modes setadddelete
mentioned inCommand builders
Helpful?
propertyNumbersince 5.0.0-a2
[the] min value of %slashoption%
%slashoption%'s min value

The lowest value accepted by an integer or number option.

change modes set
Helpful?
propertyNumbersince 5.0.0-a2
[the] max value of %slashoption%
%slashoption%'s max value

The highest value accepted by an integer or number option.

change modes set
Helpful?
propertyNumbersince 5.0.0-a2
[the] min length of %slashoption%
%slashoption%'s min length

The shortest text accepted by a string option (0 to 6000).

change modes set
Helpful?
propertyNumbersince 5.0.0-a2
[the] max length of %slashoption%
%slashoption%'s max length

The longest text accepted by a string option (1 to 6000).

change modes set
Helpful?
propertylist of ChannelTypesince 5.0.0-a2
[the] channel types of %slashoption%
%slashoption%'s channel types

The kinds of channel a channel option accepts (text, voice, category, ...). Empty means any.

change modes setaddremovedelete
Helpful?
propertyText since 5.0.0-a1
[the] name of %slashoption%
%slashoption%'s name

The name of a Discord entity: a user's or member's account name, a guild's name, a role/channel name, a bot's define-name. Registered on Skript's native Property.NAME, so the idiomatic "name of %x%" works without colliding. For a member's server nickname or display name, use "effective name".

change modes set
Helpful?

Expressions

1
expressionSlash Optionsince 5.0.0-a2
Feeling lost? This is covered in the guide Slash options
[a] new %optiontype% [slash] option (named|with [the] name) %string% with [the] desc[ription] %string%

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'.

mentioned inCommand builders
Helpful?

Returned by

4

Syntaxes elsewhere in DiSky that return Slash Option.

Documentation

2

Hand-written guides that cover Slash Option.

An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.