Client
The main class that is used to use Carbon
The main class that is used to use Carbon is the Client
class. Everything all connects to this one class, and it is the main instance for your bot.
Creating a Client
A client must be created within your createHandle
factory.
Here we have created a client with the following options:
baseUrl
: The relative base URL of your appdeploySecret
: The deploy secret of your bot, used as a password for deploying commands and other sensitive mattersclientId
: The Discord client ID of your botpublicKey
: The Discord public key of your bottoken
: The Discord token of your bot
And we have also provided it with a list of commands, which in this case is just the PingCommand
we created earlier.
Last updated on