diff options
| -rw-r--r-- | commands/Pokemon/lsitem.js | 2 |
1 files changed, 1 insertions, 1 deletions
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!') |
