From b04f7b9921b8e4981b53021878f3d686c8b7ee65 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 18 Mar 2018 19:13:33 -0400 Subject: emergency fix --- commands/Pokemon/claim.js | 1 + 1 file changed, 1 insertion(+) (limited to 'commands/Pokemon') diff --git a/commands/Pokemon/claim.js b/commands/Pokemon/claim.js index b0b6f2f..b02cdd0 100644 --- a/commands/Pokemon/claim.js +++ b/commands/Pokemon/claim.js @@ -40,6 +40,7 @@ exports.run = async (bot, msg) => { if (msg.guild.members.find('id', owner).roles.find('name', team)) return msg.reply('Don\'t try battling your own team. They won\'t like you.'); msg.channel.send('<@' + owner + '>, come here as ' + msg.member.displayName + ' wants to battle you.'); bot.on('message', async mess => { + if (mess.channel != msg.channel) return; let field = mess.embeds[0]; if (!field) return; field = field.description; -- cgit v1.2.3