Skip to content

Slash

Slash ⇐ Base

Represents a Slash command.

Kind: global class
Extends: Base
Constructor.:
Properties

NameTypeDescription
typestringThe type of the Slash command.
namestringThe name of the Slash command.
descriptionstringThe description of the Slash command.
optionsArray.<SlashOption>The options of the Slash command.
defaultMemberPermissionsbooleanThe default member permissions of the Slash command.

new Slash([data], client)

Constructs a new instance of the ApplicationCommand class

ParamTypeDescription
[data]ObjectThe data object containing information about the Slash command.
clientClientThe client object.