export declare class SharedSlashCommandOptions<TypeAfterAddingOptions extends SharedSlashCommandOptions<TypeAfterAddingOptions>>
This mixin holds symbols that can be shared in slash command options.
Type Parameters
SharedSlashCommandOptions<TypeAfterAddingOptions> TypeAfterAddingOptions extends
The type this class should return after adding an option.
readonlyToAPIApplicationCommandOptions[] options :
addAttachmentOptioninput: SlashCommandAttachmentOption | ((builder: SlashCommandAttachmentOption) => SlashCommandAttachmentOption)) : TypeAfterAddingOptions (
input: SlashCommandAttachmentOption | ((builder: SlashCommandAttachmentOption) => SlashCommandAttachmentOption)
Adds an attachment option.
addBooleanOptioninput: SlashCommandBooleanOption | ((builder: SlashCommandBooleanOption) => SlashCommandBooleanOption)) : TypeAfterAddingOptions (
input: SlashCommandBooleanOption | ((builder: SlashCommandBooleanOption) => SlashCommandBooleanOption)
Adds a boolean option.
addChannelOptioninput: SlashCommandChannelOption | ((builder: SlashCommandChannelOption) => SlashCommandChannelOption)) : TypeAfterAddingOptions (
input: SlashCommandChannelOption | ((builder: SlashCommandChannelOption) => SlashCommandChannelOption)
Adds a channel option.
addIntegerOptioninput: SlashCommandIntegerOption | ((builder: SlashCommandIntegerOption) => SlashCommandIntegerOption)) : TypeAfterAddingOptions (
input: SlashCommandIntegerOption | ((builder: SlashCommandIntegerOption) => SlashCommandIntegerOption)
Adds an integer option.
addMentionableOptioninput: SlashCommandMentionableOption | ((builder: SlashCommandMentionableOption) => SlashCommandMentionableOption)) : TypeAfterAddingOptions (
input: SlashCommandMentionableOption | ((builder: SlashCommandMentionableOption) => SlashCommandMentionableOption)
Adds a mentionable option.
addNumberOptioninput: SlashCommandNumberOption | ((builder: SlashCommandNumberOption) => SlashCommandNumberOption)) : TypeAfterAddingOptions (
input: SlashCommandNumberOption | ((builder: SlashCommandNumberOption) => SlashCommandNumberOption)
Adds a number option.
addRoleOptioninput: SlashCommandRoleOption | ((builder: SlashCommandRoleOption) => SlashCommandRoleOption)) : TypeAfterAddingOptions (
input: SlashCommandRoleOption | ((builder: SlashCommandRoleOption) => SlashCommandRoleOption)
Adds a role option.
addStringOptioninput: SlashCommandStringOption | ((builder: SlashCommandStringOption) => SlashCommandStringOption)) : TypeAfterAddingOptions (
input: SlashCommandStringOption | ((builder: SlashCommandStringOption) => SlashCommandStringOption)
Adds a string option.
addUserOptioninput: SlashCommandUserOption | ((builder: SlashCommandUserOption) => SlashCommandUserOption)) : TypeAfterAddingOptions (
input: SlashCommandUserOption | ((builder: SlashCommandUserOption) => SlashCommandUserOption)
Adds a user option.