New Slash Command (Expression) — DiSky

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

Syntax

[a] new slash command (named|with [the] name) %text% with [the] desc[ription] %text%

Description

Creates a slash command. The name must be lowercase, 1 to 32 characters, without spaces.

Examples

set {_cmd} to a new slash command named "ping" with description "Pong!"
add a new string option named "text" with description "What to echo" to options of {_cmd}
update the discord commands {_cmd} in event-guild

View source