From 8a2c9fa90cca0dfe1ddc86beb70496daee034de6 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Mon, 3 Aug 2020 16:46:18 +0100 Subject: [PATCH] part 2 --- commands/help.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/help.js b/commands/help.js index 2873b95..82a8ede 100644 --- a/commands/help.js +++ b/commands/help.js @@ -1,7 +1,7 @@ const Discord = require('discord.js'); -const { version } = require('../package.json'); const config = require('../config.json'); const log = require(`leekslazylogger`); + module.exports = { name: 'help', description: 'Displays help menu', @@ -38,11 +38,11 @@ module.exports = { if (message.channel.type === 'dm') return; // message.channel.send(`A list of commands has been sent to you.`); }) - .catch(error => { + .catch(() => { // console.error(`Could not send help DM to ${message.author.tag}.\n`, error); log.warn(`Could not DM help menu to ${message.author.tag}, sending to server channel instead`); - message.channel.send(`:x: **Sorry!** There was an error whilst sending the help menu via DMs.`) - message.channel.send(data, { split: true }) + message.channel.send(`:x: **Sorry!** There was an error whilst sending the help menu via DMs.`); + message.channel.send(data, { split: true }); }); } else { const name = args[0].toLowerCase(); @@ -105,4 +105,4 @@ module.exports = { } // command ends here }, -}; +}; \ No newline at end of file