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[]

Adds an attachment option.

Adds a boolean option.

Adds a channel option.

Adds an integer option.

Adds a mentionable option.

Adds a number option.

Adds a role option.

Adds a string option.

Adds a user option.