SlashCommand
Represents a slash command on the API
Last updated
Was this helpful?
Represents a slash command on the API
Last updated
Was this helpful?
Source:
Parameter
Optional
Type
Description
options
Yup
Object
An object specifying options for the command
options.name
Nope
String
A name for the command
options.description
Nope
String
A description for the command
options.options
Nope
Array
An array of ApplicationCommandOption
objects
Property
Type
Description
name
String
The command name
description
String
The command description
options
Array
The command options
Change the command name to the new one
Change the command description to the new one
Add another option to the command
Add multiple options to the command
Convert the command object to a JSON payload that can be sent to the API