From d674013510cf3bf24dd8808711cd52f4260b31db Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Fri, 25 Jun 2021 18:58:21 +0200 Subject: [PATCH] Don't hardcode client username and avatar --- commands/help.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/help.js b/commands/help.js index e7361ff..354b21a 100644 --- a/commands/help.js +++ b/commands/help.js @@ -9,7 +9,7 @@ module.exports = { "help will return help with a more descriptive description", "The descriptive description isn't available on all commands" ], - execute({ message, args, prefix }) { + execute({ message, args, prefix, client }) { var commands = " " let commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js')); let x = 0 @@ -27,7 +27,7 @@ module.exports = { .setColor(15780145) .setTitle("Commands") .setTimestamp() - .setAuthor("soilens bot", "https://cdn.discordapp.com/avatars/481128222147477506/1a30f57f8e403f54aaca502012aeff14.png?size=2048") + .setAuthor(client.user.username, client.user.avatarURL({ dynamic: true, size: 4096 })) let noHelp = 0; for (const file of commandFiles) {