export declare abstract class CommandBuilder<Command extends RESTPostAPIApplicationCommandsJSONBody> implements JSONEncodable<Command>
Type Parameters
RESTPostAPIApplicationCommandsJSONBody Command extends
protectedreadonlyCommandData data :
Clears the default permissions a member should have in order to run the command.
setContexts...contexts: RestOrArray<InteractionContextType>) : this (
...contexts: RestOrArray<InteractionContextType>
Sets the contexts of this command.
setDefaultMemberPermissionspermissions: Permissions | bigint | number) : this (
permissions: Permissions | bigint | number
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
setIntegrationTypes...integrationTypes: RestOrArray<ApplicationIntegrationType>) : this (
...integrationTypes: RestOrArray<ApplicationIntegrationType>
Sets the integration types of this command.
setNSFWnsfw?: boolean) : this (
nsfw?: boolean
Sets whether this command is NSFW.