aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-03-24 17:33:22 -0400
committerUnknown <jtsshieh@outlook.com>2018-03-24 17:33:22 -0400
commitc7f3da3f5ce01efd6cd0dc7f4a0a89c33f76a675 (patch)
treebe6fc5959c8556fc378eafa12dfc0cd52cf699f8 /commands
parent1332b3bfc7e711195e6c1202b5ba64aefd78c5db (diff)
downloadPokeBot-c7f3da3f5ce01efd6cd0dc7f4a0a89c33f76a675.tar.gz
PokeBot-c7f3da3f5ce01efd6cd0dc7f4a0a89c33f76a675.tar.bz2
PokeBot-c7f3da3f5ce01efd6cd0dc7f4a0a89c33f76a675.zip
fix
Diffstat (limited to 'commands')
-rw-r--r--commands/Pokemon/lsitem.js2
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!')