Slash Option Value (Expression) — DiSky

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

Syntax

[the] [slash] (option|arg[ument]) [value] [(named|with [the] name)] %text% [as (%*types.optiontype%|member)]

Description

The value the user gave to an option of the current slash command, by option name. Typed after what Discord sent (a text, an integer, a number, a boolean, a user, a channel, a role, a mentionable, an attachment), or after the option type you ask for; 'as member' turns a user into the guild member. For a command declared by a 'slash command' structure, '{_name}' and 'arg-1' are simpler.

Examples

on slash command:
	if used slash command is "ban":
		ban slash option "target" as member with reason slash option "reason"

View source