From 5677f2d4b8ee45e8165440bb7ef57b8a28f5a838 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 22 Jul 2020 20:10:07 -0400 Subject: Fixes --- bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.js b/bot.js index f6c496f..98b710f 100644 --- a/bot.js +++ b/bot.js @@ -93,7 +93,7 @@ client.on('message', async msg => { // Public allowed commands if (command == 'help') { - if (!message.guild.member(client.user).hasPermission('EMBED_LINKS')) return message.reply('ERROR: This bot doesn\'t have the permission to send embed links please enable them to use the full help.'); + if (!msg.guild.member(client.user).hasPermission('EMBED_LINKS')) return msg.reply('ERROR: This bot doesn\'t have the permission to send embed links please enable them to use the full help.'); const helpEmbed = new Discord.MessageEmbed() .setAuthor(`${client.user.username} Help`, client.user.avatarURL) .setDescription(`Currently playing \`${audio}\`.`) -- cgit v1.2.3