NPM Command

This commit is contained in:
Daniel Odendahl Jr
2017-07-23 00:22:07 +00:00
parent 827c14fd55
commit 0c1f3fd2ca
5 changed files with 54 additions and 2 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ module.exports = class BotSearchCommand extends Command {
body.prefix, true);
return msg.embed(embed);
} catch (err) {
if (err.message === '404 Not Found') return msg.say('Bot Not Found.');
if (err.status === 404) return msg.say('Bot Not Found.');
else throw err;
}
}