aboutsummaryrefslogtreecommitdiff
path: root/commands/Pokemon/claim.js
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-03-18 19:13:33 -0400
committerUnknown <jtsshieh@outlook.com>2018-03-18 19:13:33 -0400
commitb04f7b9921b8e4981b53021878f3d686c8b7ee65 (patch)
treeb752fa37c625b3ba1c10d57b750360888b1b3957 /commands/Pokemon/claim.js
parentcf25e5cf724d4e750d30132ee6f41e73ee3e2fd0 (diff)
downloadPokeBot-b04f7b9921b8e4981b53021878f3d686c8b7ee65.tar.gz
PokeBot-b04f7b9921b8e4981b53021878f3d686c8b7ee65.tar.bz2
PokeBot-b04f7b9921b8e4981b53021878f3d686c8b7ee65.zip
emergency fix
Diffstat (limited to 'commands/Pokemon/claim.js')
-rw-r--r--commands/Pokemon/claim.js1
1 files changed, 1 insertions, 0 deletions
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;