Skip to content

$slashOption

$slashOption returns data of a slash command option.

Usage

$slashOption[option]

Parameters

FieldTypeDescriptionRequired
optionstringOption name.true

Example(s)

1
$createApplicationCommand[global;exampleslash;Simple example slash command.;true;true;slash;[{
2
"name": "exampleOption",
3
"description": "example slash command option",
4
"required": true,
5
"type": 3
6
}]]
1
client.command({
2
name: "exampleslash",
3
type: "interaction",
4
prototype: "slash",
5
code: `
6
$interactionReply[What a great example! You entered $slashOption[exampleOption]!]`
7
});