Optional Readonly contextsReadonly default_Readonly default_Use setDefaultMemberPermissions or setDMPermission instead.
Readonly descriptionOptional Readonly description_Readonly dm_Use contexts instead.
Optional Readonly integration_Readonly nameOptional Readonly name_Readonly nsfwReadonly optionsSets the contexts of this command.
Rest ...contexts: RestOrArray<InteractionContextType>The contexts
Sets if the command is available in direct messages with the application.
Whether the command should be enabled in direct messages
By default, commands are visible. This method is only for global commands.
https://discord.com/developers/docs/interactions/application-commands#permissions
Use setContexts instead.
Sets the default permissions a member should have in order to run the command.
The permissions bit field to set
You can set this to '0' to disable the command by default.
https://discord.com/developers/docs/interactions/application-commands#permissions
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
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.
Sets the integration types of this command.
Rest ...integrationTypes: RestOrArray<ApplicationIntegrationType>The integration types
Sets whether this command is NSFW.
Optional nsfw: booleanWhether this command is NSFW
Serializes this builder to API-compatible JSON data.
This method runs validations on the data before serializing it. As such, it may throw an error if the data is invalid.
Generated using TypeDoc
This mixin holds symbols that can be shared in slashcommands independent of options or subcommands.