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
disableAutoRegister?booleanWhether components and modals should not be registered automatically. If you want you register components yourself (e.g. you are changing them at runtime), you can manually call ComponentHandler#registerComponent and ModalHandler#registerModal on the client. Default false
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