export declare class SharedSlashCommandSubcommands<TypeAfterAddingSubcommands extends SharedSlashCommandSubcommands<TypeAfterAddingSubcommands>>
This mixin holds symbols that can be shared in slash subcommands.
Type Parameters
SharedSlashCommandSubcommands<TypeAfterAddingSubcommands> TypeAfterAddingSubcommands extends
readonlyoptionalLocalizationMap description_localizations? :
readonlystring description :
readonlyoptionalLocalizationMap name_localizations? :
readonlystring name :
readonlyToAPIApplicationCommandOptions[] options :
addSubcommandinput: SlashCommandSubcommandBuilder | ((subcommandGroup: SlashCommandSubcommandBuilder) => SlashCommandSubcommandBuilder)) : TypeAfterAddingSubcommands (
Adds a new subcommand to this command.
addSubcommandGroupinput: SlashCommandSubcommandGroupBuilder | ((subcommandGroup: SlashCommandSubcommandGroupBuilder) => SlashCommandSubcommandGroupBuilder)) : TypeAfterAddingSubcommands (
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 direct messages with the application.
See also: https://discord.com/developers/docs/interactions/application-commands#permissions
setNSFWnsfw?: boolean) : this (
Sets whether this command is NSFW.
Serializes this builder to API-compatible JSON data.