declare class SlashCommandBuilder
readonlyPermissions | null | undefined default_member_permissions :
Set of permissions represented as a bit set for the command
This property is deprecated and will be removed in the future. You should use setDefaultMemberPermissions or setDMPermission instead.
Whether the command is enabled by default when the app is added to a guild
readonlyoptionalLocalizationMap description_localizations? :
The localized descriptions for this command
readonlystring description :
The description of this slash command
Indicates whether the command is available in DMs with the application, only for globally-scoped commands. By default, commands are visible.
readonlyoptionalLocalizationMap name_localizations? :
The localized names for this command
readonlystring name :
The name of this slash command
readonlyToAPIApplicationCommandOptions[] options :
The options of this slash command
readonlyoptionalLocalizationMap description_localizations? :
Inherited from: SharedNameAndDescription
readonlystring description :
Inherited from: SharedNameAndDescription
readonlyoptionalLocalizationMap name_localizations? :
Inherited from: SharedNameAndDescription
readonlystring name :
Inherited from: SharedNameAndDescription
readonlyToAPIApplicationCommandOptions[] options :
Inherited from: SharedSlashCommandOptions
addSubcommandinput: SlashCommandSubcommandBuilder | ((subcommandGroup: SlashCommandSubcommandBuilder) => SlashCommandSubcommandBuilder)) : SlashCommandSubcommandsOnlyBuilder (
Adds a new subcommand to this command
addSubcommandGroupinput: SlashCommandSubcommandGroupBuilder | ((subcommandGroup: SlashCommandSubcommandGroupBuilder) => SlashCommandSubcommandGroupBuilder)) : SlashCommandSubcommandsOnlyBuilder (
Adds a new subcommand group to this command
setDefaultMemberPermissionspermissions: Permissions | bigint | number | null | undefined) : this (
Sets the default permissions a member should have in order to run the command.
See also: https://discord.com/developers/docs/interactions/application-commands#permissions
deprecated setDefaultPermissionvalue: boolean) : this (
Use setDefaultMemberPermissions or setDMPermission instead.
Sets whether the command is enabled by default when the application is added to a guild.
See also: https://discord.com/developers/docs/interactions/application-commands#permissions
Sets if the command is available in DMs with the application, only for globally-scoped commands. By default, commands are visible.
See also: https://discord.com/developers/docs/interactions/application-commands#permissions
Returns the final data that should be sent to Discord.
addAttachmentOptioninput: SlashCommandAttachmentOption | ((builder: SlashCommandAttachmentOption) => SlashCommandAttachmentOption)) : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this (
Adds an attachment option
Inherited from: SharedSlashCommandOptions
addBooleanOptioninput: SlashCommandBooleanOption | ((builder: SlashCommandBooleanOption) => SlashCommandBooleanOption)) : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this (
Adds a boolean option
Inherited from: SharedSlashCommandOptions
addChannelOptioninput: SlashCommandChannelOption | ((builder: SlashCommandChannelOption) => SlashCommandChannelOption)) : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this (
Adds a channel option
Inherited from: SharedSlashCommandOptions
addIntegerOptioninput: Omit<SlashCommandIntegerOption, 'addChoices'> | Omit<SlashCommandIntegerOption, 'setAutocomplete'> | SlashCommandIntegerOption | ((builder: SlashCommandIntegerOption) => Omit<SlashCommandIntegerOption, 'addChoices'> | Omit<SlashCommandIntegerOption, 'setAutocomplete'> | SlashCommandIntegerOption)) : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this (
Adds an integer option
Inherited from: SharedSlashCommandOptions
addMentionableOptioninput: SlashCommandMentionableOption | ((builder: SlashCommandMentionableOption) => SlashCommandMentionableOption)) : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this (
Adds a mentionable option
Inherited from: SharedSlashCommandOptions
addNumberOptioninput: Omit<SlashCommandNumberOption, 'addChoices'> | Omit<SlashCommandNumberOption, 'setAutocomplete'> | SlashCommandNumberOption | ((builder: SlashCommandNumberOption) => Omit<SlashCommandNumberOption, 'addChoices'> | Omit<SlashCommandNumberOption, 'setAutocomplete'> | SlashCommandNumberOption)) : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this (
Adds a number option
Inherited from: SharedSlashCommandOptions
addRoleOptioninput: SlashCommandRoleOption | ((builder: SlashCommandRoleOption) => SlashCommandRoleOption)) : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this (
Adds a role option
Inherited from: SharedSlashCommandOptions
addStringOptioninput: Omit<SlashCommandStringOption, 'addChoices'> | Omit<SlashCommandStringOption, 'setAutocomplete'> | SlashCommandStringOption | ((builder: SlashCommandStringOption) => Omit<SlashCommandStringOption, 'addChoices'> | Omit<SlashCommandStringOption, 'setAutocomplete'> | SlashCommandStringOption)) : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this (
Adds a string option
Inherited from: SharedSlashCommandOptions
addUserOptioninput: SlashCommandUserOption | ((builder: SlashCommandUserOption) => SlashCommandUserOption)) : ShouldOmitSubcommandFunctions extends true ? Omit<this, "addSubcommand" | "addSubcommandGroup"> : this (
Adds a user option
Inherited from: SharedSlashCommandOptions
setDescriptiondescription: string) : this (
Sets the description
Inherited from: SharedNameAndDescription
setDescriptionLocalizationlocale: LocaleStringlocalizedDescription: string | null) : this (
Sets a description localization
Inherited from: SharedNameAndDescription
setDescriptionLocalizationslocalizedDescriptions: LocalizationMap | null) : this (
Sets the description localizations
Inherited from: SharedNameAndDescription
setNameLocalizationlocale: LocaleStringlocalizedName: string | null) : this (
Sets a name localization
Inherited from: SharedNameAndDescription
setNameLocalizationslocalizedNames: LocalizationMap | null) : this (
Sets the name localizations
Inherited from: SharedNameAndDescription