Preview environment

class SharedSlashCommandOptions

export declare class SharedSlashCommandOptions<TypeAfterAddingOptions extends SharedSlashCommandOptions<TypeAfterAddingOptions>>

This mixin holds symbols that can be shared in slash command options.

Type Parameters

TypeAfterAddingOptions extends SharedSlashCommandOptions<TypeAfterAddingOptions>

The type this class should return after adding an option.

readonly
options : ToAPIApplicationCommandOptions[]

addAttachmentOption() : TypeAfterAddingOptions

Adds an attachment option.

addBooleanOption() : TypeAfterAddingOptions

Adds a boolean option.

addChannelOption() : TypeAfterAddingOptions

Adds a channel option.

addIntegerOption() : TypeAfterAddingOptions

Adds an integer option.

addMentionableOption() : TypeAfterAddingOptions

Adds a mentionable option.

addNumberOption() : TypeAfterAddingOptions

Adds a number option.

addRoleOption() : TypeAfterAddingOptions

Adds a role option.

addStringOption() : TypeAfterAddingOptions

Adds a string option.

addUserOption() : TypeAfterAddingOptions

Adds a user option.