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 |
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? | boolean | Whether the deploy route should be disabled. Default false |
disableEventsRoute? | boolean | Whether the events route should be disabled Default false |
disableInteractionsRoute? | boolean | Whether the interactions route should be disabled Default false |
publicKey | string | string [] | The public key of the app, used for interaction verification Can be a single key or an array of keys |
requestOptions? | RequestClientOptions | The options used to initialize the request client, if you want to customize it. |
token | string | The token of the bot |