Carbon
Core/Interfaces

ClientOptions

The options used for initializing the client

Properties

PropertyTypeDescription
autoDeploy?booleanWhether the commands should be deployed to Discord automatically. Default false
baseUrlstringThe base URL of the app
clientIdstringThe client ID of the app
clientSecretstringThe client secret of the app, used for OAuth
deploySecret?stringThe deploy secret of the app, used for protecting the deploy route
devGuilds?string[]A list of guild IDs to deploy all commands to during development (guild command deployment is instant and rate-limited higher). If set, all commands will be deployed to these guilds instead of globally.
disableDeployRoute?booleanWhether the deploy route should be disabled. Default false
disableEventsRoute?booleanWhether the events route should be disabled Default false
disableInteractionsRoute?booleanWhether the interactions route should be disabled Default false
publicKeystring | string[]The public key of the app, used for interaction verification Can be a single key or an array of keys
requestOptions?RequestClientOptionsThe options used to initialize the request client, if you want to customize it.
tokenstringThe token of the bot

On this page