From 5ad646ab9f45311966ad0734c28cdf88a40b80fe Mon Sep 17 00:00:00 2001 From: Zerio <43386412+ZerioDev@users.noreply.github.com> Date: Tue, 22 Dec 2020 11:19:10 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Update=20(v4.0.1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/core/help.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/core/help.js b/commands/core/help.js index 7591865..b4bf481 100644 --- a/commands/core/help.js +++ b/commands/core/help.js @@ -6,8 +6,8 @@ module.exports = { execute(client, message, args) { if (!args[0]) { - const infos = message.client.commands.filter(c => c.category == 'Infos').map((c) => '`' + c.name + '`').join(', '); - const music = message.client.commands.filter(c => c.category == 'Music').map((c) => '`' + c.name + '`').join(', '); + const infos = message.client.commands.filter(x => x.category == 'Infos').map((x) => '`' + x.name + '`').join(', '); + const music = message.client.commands.filter(x => x.category == 'Music').map((x) => '`' + x.name + '`').join(', '); message.channel.send({ embed: { @@ -17,14 +17,14 @@ module.exports = { fields: [ { name: 'Bot', value: infos }, { name: 'Music', value: music }, - { name: 'Filters', value: '`bassboost`, `8D`, `vaporwave`, `nightcore`, `phaser`, `tremolo`, `vibrato`, `reverse`, `treble`, `normalizer`, `surrounding`, `pulsator`, `subboost`, `karaoke`, `flanger`, `gate`, `haas`, `mcompand`' }, + { name: 'Filters', value: client.filters.map((x) => '`' + x + '`').join(', ') }, ], timestamp: new Date(), description: `To use filters, ${client.config.discord.prefix}filter (the filter). Example : ${client.config.discord.prefix}filter 8D.`, }, }); } else { - const command = message.client.commands.get(args.join(" ").toLowerCase()) || message.client.commands.find(c => c.aliases && c.aliases.includes(args.join(" ").toLowerCase())); + const command = message.client.commands.get(args.join(" ").toLowerCase()) || message.client.commands.find(x => x.aliases && x.aliases.includes(args.join(" ").toLowerCase())); if (!command) return message.channel.send(`${client.emotes.error} - I did not find this command !`); @@ -45,4 +45,4 @@ module.exports = { }); }; }, -}; \ No newline at end of file +};