mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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!`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user