diff --git a/commands/search/botinfo.js b/commands/search/botinfo.js index 49efdc9d..7cc1ddde 100644 --- a/commands/search/botinfo.js +++ b/commands/search/botinfo.js @@ -28,7 +28,7 @@ module.exports = class BotSearchCommand extends Command { try { const { body } = await snekfetch .get(`https://bots.discord.pw/api/bots/${bot.id}`) - .set('Authorization', DBOTS_KEY); + .set({ 'Authorization': DBOTS_KEY }); const embed = new RichEmbed() .setColor(0x9797FF) .setAuthor('Discord Bots', 'https://i.imgur.com/lrKYBQi.jpg') @@ -43,8 +43,7 @@ module.exports = class BotSearchCommand extends Command { body.prefix, true); return msg.embed(embed); } catch (err) { - console.log(err); - return msg.say(err); + return msg.say('No Results.'); } } };