aboutsummaryrefslogtreecommitdiff
path: root/commands/Pokemon/lsitem.js
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-03-28 22:22:03 -0400
committerUnknown <jtsshieh@outlook.com>2018-03-28 22:22:03 -0400
commitffbfc7f3e6ffe132331eff8b5c5d4f154fb75d1d (patch)
treec2cb86a407e4ccce22a633a1a6f75e7d2191a42b /commands/Pokemon/lsitem.js
parenta092ec2404ea5867465d5045e80b520e90a1741d (diff)
downloadPokeBot-ffbfc7f3e6ffe132331eff8b5c5d4f154fb75d1d.tar.gz
PokeBot-ffbfc7f3e6ffe132331eff8b5c5d4f154fb75d1d.tar.bz2
PokeBot-ffbfc7f3e6ffe132331eff8b5c5d4f154fb75d1d.zip
stupid me
Diffstat (limited to 'commands/Pokemon/lsitem.js')
-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 aa66b1b..515eb46 100644
--- a/commands/Pokemon/lsitem.js
+++ b/commands/Pokemon/lsitem.js
@@ -23,7 +23,7 @@ exports.run = async (bot, msg, args) => {
const { RichEmbed } = require('discord.js');
const data = args.join(' ').split('|');
- const msgs = await msg.channel.fetchMessages({ limit: 10 });
+ 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]);