Quick Start
Discokit is an SDK for the Discord API (opens in a new tab). It's a collection of libraries that make it easier to interact with Discord's API.
Before we begin
The documentation assumes you have basic knowledge about Node.js and JavaScript.
Quick Start with Template
TODO: add template
Create a new project
Install
To create a project manually, we must first install the discokit
package from npm.
npm i discokit
Writing the code
Next, create a index.js
file within your project directory and put the following
code:
// TODO: add code
Adding a start
script
Add a start
script to your package.json
:
{
"scripts": {
"start": "node ."
}
}
Running the code
To run the code, simply run the following command:
npm start
Everytime you make changes, you must stop and restart the bot.
In order to stop the bot, press CTRL
+ C
, this will terminate the
currently running command.
You can then press the up arrow key to run the previous command.