export declare abstract class CommandBuilder<Command extends RESTPostAPIApplicationCommandsJSONBody> implements JSONEncodable<Command>The base class for all command builders.
Type Parameters
Command extends RESTPostAPIApplicationCommandsJSONBody
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.
setDefaultMemberPermissions(permissions: 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.
setNSFW(nsfw?: boolean) : this
nsfw?: boolean
Sets whether this command is NSFW.