From 47aa7c5ddfaf893d5b7cf0bfe3d76480e44c4cc9 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 28 Mar 2018 22:23:06 -0400 Subject: again, stupid --- commands/Pokemon/lsitem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/Pokemon') diff --git a/commands/Pokemon/lsitem.js b/commands/Pokemon/lsitem.js index 515eb46..a072ad8 100644 --- a/commands/Pokemon/lsitem.js +++ b/commands/Pokemon/lsitem.js @@ -26,7 +26,7 @@ exports.run = async (bot, msg, args) => { const msgs = await bot.channels.find('id', '428738848420397057').fetchMessages({ limit: 10 }); const mess = msgs.first(); if (!mess.embeds) return; - const id = parseInt(mess.embeds[0].author.name.split(':')[0]); + const id = parseInt(mess.embeds[0].author.name.split(':')[1]); bot.channels.find('id', '428738848420397057').send( new RichEmbed() -- cgit v1.2.3