Updated docs

This commit is contained in:
Vylpes 2020-10-23 18:27:39 +01:00
parent bf09d9bed0
commit 64a58baef4

View file

@ -40,8 +40,12 @@ An example configuration:
{ {
"token": "<YOUR-BOT-TOKEN>", "token": "<YOUR-BOT-TOKEN>",
"prefix": "!", "prefix": "!",
"commands": "commands", "commands": [
"events": "events" "commands"
],
"events": [
"events"
]
} }
``` ```
@ -125,4 +129,4 @@ module.exports = message;
2. In the `constructor()` you need to call `super(run)`, replacing `run` with a string of the name of the method which will run when the event gets triggered. 2. In the `constructor()` you need to call `super(run)`, replacing `run` with a string of the name of the method which will run when the event gets triggered.
3. Create a method using the name you set in `super(run)`, with the parameters being as per your event's paramaters in the discord.js documentation. 3. Create a method using the name you set in `super(run)`, with the parameters being as per your event's paramaters in the discord.js documentation.
> **Note:** The name of the event file will determine what event it will be triggered on. For example, if you want to have an event trigger everytime a message is sent, put into your event folder a file called `message.js` and follow the steps above. > **Note:** The name of the event file will determine what event it will be triggered on. For example, if you want to have an event trigger everytime a message is sent, put into your event folder a file called `message.js` and follow the steps above.