SlashCommandOptions

The options for the SlashCommand.

Properties

Parameter

Type

Required

Default

Description

client

true

none

The Discord.Client or an id and token.

registerCommands

bool

false

true

If enabled, commands will get patched / deleted / created

runCommand

bool

false

true

If enabled, command will be run. disable when on the ShardingManager.

deleteUnregisteredCommands

bool

false

true

If enabled, commands that no longer exist will get deleted.

sendPongIfNoResponse

bool

false

true

If the ran command hasn't executed any interaction callback, execute a PONG with source.

parseInteractionOptions

bool

false

true

If enabled, this will automatically parse the options of an interaction.

debug

bool

false

true

If enabled, the debug messages will be displayed.

debugPrefix

string

false

[SDJS]

The prefix of the debug messages.

sendNoLongerAvailable

bool

false

true

If enabled, when a command gets executed that isn't recognized it will return a message.

noLongerAvailableMessage

string

false

This command is no longer available

The message which should be displayed if sendNoLongerAvailable is true

Last updated

Was this helpful?