From d29920f871728d011c97f7f0ff22a62665d95b7c Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Fri, 12 Mar 2021 23:19:44 +0100 Subject: [PATCH] Pass prefix in help command --- commands/help.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/help.js b/commands/help.js index 7d1f97a..662268b 100644 --- a/commands/help.js +++ b/commands/help.js @@ -1,12 +1,11 @@ const fs = require('fs'); const Discord = require('discord.js'); -const {prefix} = require('../config.json'); module.exports = { name: 'help', description: 'List all available commands.', - execute({message, args}) { + execute({message, args, prefix}) { var commands = " " const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));