Skip to content

Commit

Permalink
flip boolean
Browse files Browse the repository at this point in the history
remove obsolete await also
  • Loading branch information
Glazelf committed Jun 15, 2024
1 parent ff19f5b commit 2aa4c10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/api/pokemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default async (client, interaction, ephemeral) => {
// Used for move and learn
let moveSearch = interaction.options.getString("move");
let move = Dex.moves.get(moveSearch);
let moveExists = (move && move.exists && move.isNonstandard == "CAP");
let moveExists = (move && move.exists && move.isNonstandard !== "CAP");

switch (interaction.options.getSubcommand()) {
// Abilities
Expand Down Expand Up @@ -410,7 +410,7 @@ export default async (client, interaction, ephemeral) => {
});
let usageListPart1 = [];
let usageListPart2 = [];
await usageList.forEach(element => { if (usageListPart1.length < 50) usageListPart1.push(element); else if (usageListPart2.length < 50) usageListPart2.push(element) });
usageList.forEach(element => { if (usageListPart1.length < 50) usageListPart1.push(element); else if (usageListPart2.length < 50) usageListPart2.push(element) });
pokemonEmbed
.setTitle(`Usage for ${formatInput} ${rating}+ (${stringMonth}/${year})`)
.addFields([
Expand Down

0 comments on commit 2aa4c10

Please sign in to comment.