From 64a58baef4fde37af18ecd0993b53d945585b5ea Mon Sep 17 00:00:00 2001 From: Vylpes Date: Fri, 23 Oct 2020 18:27:39 +0100 Subject: [PATCH] Updated docs --- docs/index.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/index.md b/docs/index.md index 78934c1..46e98ab 100644 --- a/docs/index.md +++ b/docs/index.md @@ -40,8 +40,12 @@ An example configuration: { "token": "", "prefix": "!", - "commands": "commands", - "events": "events" + "commands": [ + "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. 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. \ No newline at end of file +> **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.