mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
NPM Command
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user