From c7f3da3f5ce01efd6cd0dc7f4a0a89c33f76a675 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 Mar 2018 17:33:22 -0400 Subject: fix --- commands/Pokemon/lsitem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/Pokemon/lsitem.js') diff --git a/commands/Pokemon/lsitem.js b/commands/Pokemon/lsitem.js index e562f86..f5fcdda 100644 --- a/commands/Pokemon/lsitem.js +++ b/commands/Pokemon/lsitem.js @@ -26,7 +26,7 @@ exports.run = async (bot, msg, args) => { const msgs = await msg.channel.fetchMessages({ limit: 10 }); const mess = msgs.first(); if (!mess.embeds) return; - const id = parseInt(mess.author.name.split(':')[0]); + const id = parseInt(mess.embeds[0].author.name.split(':')[0]); msg.guild.channels.get('426906377001107477').send( new RichEmbed() .setTitle('A new pokemon is up for sale!') -- cgit v1.2.3