Readonly default_Readonly default_Whether the command is enabled by default when the app is added to a guild
This property is deprecated and will be removed in the future.
You should use setDefaultMemberPermissions or setDMPermission instead.
Readonly descriptionThe description of this slash command
Optional Readonly description_The localized descriptions for this command
Readonly dm_Indicates whether the command is available in DMs with the application, only for globally-scoped commands. By default, commands are visible.
Readonly nameThe name of this slash command
Optional Readonly name_The localized names for this command
Readonly optionsThe options of this slash 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 if the command is available in DMs with the application, only for globally-scoped commands. By default, commands are visible.
https://discord.com/developers/docs/interactions/application-commands#permissions
If the command should be enabled in DMs
Sets the default permissions a member should have in order to run the command.
Note: You can set this to '0' to disable the command by default.
https://discord.com/developers/docs/interactions/application-commands#permissions
The permissions bit field to set
Sets whether the command is enabled by default when the application is added to a guild.
Note: If set to false, you will have to later PUT the permissions for this command.
https://discord.com/developers/docs/interactions/application-commands#permissions
Use setDefaultMemberPermissions or setDMPermission instead.
Whether or not to enable this command by default
Sets a description localization
The locale to set a description for
The localized description for the given locale
Sets the description localizations
The dictionary of localized descriptions to set
Sets a name localization
The locale to set a description for
The localized description for the given locale
Sets the name localizations
The dictionary of localized descriptions to set
Generated using TypeDoc
Set of permissions represented as a bit set for the command