CoreInterfaces
ClientOptions
The options used for initializing the client
Properties
Property | Type | Description |
---|---|---|
autoDeploy? | boolean | Whether the commands should be deployed to Discord automatically. Default false |
baseUrl | string | The base URL of the app |
clientId | string | The client ID of the app |
clientSecret | string | The client secret of the app, used for OAuth |
deploySecret? | string | The deploy secret of the app, used for protecting the deploy route |
disableAutoRegister? | boolean | Whether 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? | boolean | Whether the deploy route should be disabled. Default false |
disableInteractionsRoute? | boolean | Whether the interactions route should Default false |
publicKey | string | The public key of the app, used for interaction verification |
requestOptions? | RequestClientOptions | The options used to initialize the request client, if you want to customize it. |
token | string | The token of the bot |