mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
Fix
This commit is contained in:
@@ -137,7 +137,6 @@ module.exports = class PokedexCommand extends Command {
|
|||||||
}
|
}
|
||||||
return msg.embed(embed);
|
return msg.embed(embed);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw err;
|
|
||||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
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) {
|
for (const move of moves) {
|
||||||
const versionGroup = move.version_group_details.find(mve => mve.version_group.name === this.moveSetVersion);
|
const versionGroup = move.version_group_details.find(mve => mve.version_group.name === this.moveSetVersion);
|
||||||
if (!versionGroup || !versionGroup.level_learned_at) continue;
|
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;
|
if (this.moveSet.some(mve => mve.move.id === moveData.id)) continue;
|
||||||
this.moveSet.push({
|
this.moveSet.push({
|
||||||
move: moveData,
|
move: moveData,
|
||||||
|
|||||||
Reference in New Issue
Block a user