export declare class SharedSlashCommand
This mixin holds symbols that can be shared in slashcommands independent of options or subcommands.
readonlyoptionalInteractionContextType[] contexts? :
readonlyPermissions | null | undefined default_member_permissions :
Use setDefaultMemberPermissions or setDMPermission instead.
readonlyoptionalLocalizationMap description_localizations? :
readonlystring description :
readonlyoptionalApplicationIntegrationType[] integration_types? :
readonlyoptionalLocalizationMap name_localizations? :
readonlystring name :
readonlyToAPIApplicationCommandOptions[] options :
setContexts...contexts: RestOrArray<InteractionContextType>) : this (
Sets the contexts of 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#permissionsundefined
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#permissionsundefined
Use setContexts instead.
Sets if the command is available in direct messages with the application.
See also: https://discord.com/developers/docs/interactions/application-commands#permissionsundefined
setIntegrationTypes...integrationTypes: RestOrArray<ApplicationIntegrationType>) : this (
Sets the integration types of this command.
setNSFWnsfw?: boolean) : this (
Sets whether this command is NSFW.
Serializes this builder to API-compatible JSON data.