class SharedSlashCommandOptions

declare class SharedSlashCommandOptions<ShouldOmitSubcommandFunctions = true>

Type Parameters

optional
ShouldOmitSubcommandFunctions? = true

readonly
options : ToAPIApplicationCommandOptions[]

addAttachmentOption() : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this

Adds an attachment option

addBooleanOption() : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this

Adds a boolean option

addChannelOption() : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this

Adds a channel option

addIntegerOption() : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this

Adds an integer option

addMentionableOption() : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this

Adds a mentionable option

addNumberOption() : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this

Adds a number option

addRoleOption() : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this

Adds a role option

addStringOption() : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this

Adds a string option

addUserOption() : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this

Adds a user option