mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 14:04:38 +02:00
Still throw errors in pokemon fetch if it's not a 404
This commit is contained in:
@@ -52,7 +52,6 @@ module.exports = class PokedexCommand extends Command {
|
||||
.setThumbnail(data.spriteImageURL);
|
||||
return msg.embed(embed);
|
||||
} catch (err) {
|
||||
if (err.status === 404) return msg.say('Could not find any results.');
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user