From 9d95ae3e7fad543da9ac16340fa4e9d444015429 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 19 Apr 2017 12:27:20 +0000 Subject: [PATCH] Fix Botinfo --- commands/search/botinfo.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/commands/search/botinfo.js b/commands/search/botinfo.js index 94bad430..f0470f52 100644 --- a/commands/search/botinfo.js +++ b/commands/search/botinfo.js @@ -17,10 +17,7 @@ module.exports = class BotSearchCommand extends Command { args: [{ key: 'bot', prompt: 'Which bot do you want to get information for?', - type: 'user', - parse: bot => { - return bot.id; - } + type: 'user' }] }); } @@ -31,6 +28,7 @@ module.exports = class BotSearchCommand extends Command { if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!'); } let { bot } = args; + bot = bot.id; try { const response = await request .get(`https://bots.discord.pw/api/bots/${bot}`)