Optional ReadonlycontextsThe contexts for this command.
Readonlydefault_The set of permissions represented as a bit set for the command.
Readonlydefault_Whether this command is enabled by default when the application is added to a guild.
Use SharedSlashCommand.setDefaultMemberPermissions or SharedSlashCommand.setDMPermission instead.
ReadonlydescriptionThe description of this command.
Optional Readonlydescription_The description localizations of this command.
Readonlydm_Indicates whether the command is available in direct messages with the application.
Use SlashCommandBuilder.contexts instead.
Optional Readonlyintegration_The integration types for this command.
ReadonlynameThe name of this command.
Optional Readonlyname_The name localizations of this command.
ReadonlynsfwWhether this command is NSFW.
ReadonlyoptionsThe options of this command.
Adds an attachment option.
A function that returns an option builder or an already built builder
Adds a boolean option.
A function that returns an option builder or an already built builder
Adds a channel option.
A function that returns an option builder or an already built builder
Adds an integer option.
A function that returns an option builder or an already built builder
Adds a mentionable option.
A function that returns an option builder or an already built builder
Adds a number option.
A function that returns an option builder or an already built builder
Adds a role option.
A function that returns an option builder or an already built builder
Adds a string option.
A function that returns an option builder or an already built builder
Adds a new subcommand to this command.
A function that returns a subcommand builder or an already built builder
Adds a new subcommand group to this command.
A function that returns a subcommand group builder or an already built builder
Adds a user option.
A function that returns an option builder or an already built builder
Sets the contexts of this command.
The contexts
Sets the default permissions a member should have in order to run the command.
The permissions bit field to set
Sets whether the command is enabled by default when the application is added to a guild.
Whether or not to enable this command by default
Use SharedSlashCommand.setDefaultMemberPermissions or SharedSlashCommand.setDMPermission instead.
Sets the description of this command.
The description to use
Sets a description localization for this command.
The locale to set
The localized description for the given locale
Sets if the command is available in direct messages with the application.
Whether the command should be enabled in direct messages
Use SharedSlashCommand.setContexts instead.
Sets the integration types of this command.
The integration types
Sets the name of this command.
The name to use
Sets a name localization for this command.
The locale to set
The localized name for the given locale
Sets the name localizations for this command.
The object of localized names to set
Sets whether this command is NSFW.
Optionalnsfw: booleanWhether this command is NSFW
Serializes this builder to API-compatible JSON data.
A builder that creates API-compatible JSON data for slash commands.