This commit is contained in:
Dragon Fire
2021-01-22 18:23:00 -05:00
parent d749960c28
commit ffc5f1c18d
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -137,7 +137,6 @@ module.exports = class PokedexCommand extends Command {
}
return msg.embed(embed);
} catch (err) {
throw err;
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
}
+1 -1
View File
@@ -237,7 +237,7 @@ module.exports = class Pokemon {
for (const move of moves) {
const versionGroup = move.version_group_details.find(mve => mve.version_group.name === this.moveSetVersion);
if (!versionGroup || !versionGroup.level_learned_at) continue;
const moveData = await this.store.moves.fetch(move.name);
const moveData = await this.store.moves.fetch(move.move.name);
if (this.moveSet.some(mve => mve.move.id === moveData.id)) continue;
this.moveSet.push({
move: moveData,