diff --git a/commands/100-games/planGame.js b/commands/100-games/planGame.js index b70b6e3..b8364ab 100644 --- a/commands/100-games/planGame.js +++ b/commands/100-games/planGame.js @@ -34,7 +34,7 @@ module.exports = { body = body.concat('fields *;'); let res = await getGameJson(body); - res = res.filter(entry => entry.status !== 6); + res = res.filter(entry => entry.game_type == 0); res.sort((a, b) => parseInt(b.total_rating_count) - parseInt(a.total_rating_count)); if (!res[0]) return interaction.editReply({ content: 'No game found for the options supplied.', ephemeral: true }); diff --git a/commands/100-games/startplaying.js b/commands/100-games/startplaying.js index 08874c0..d40e32d 100644 --- a/commands/100-games/startplaying.js +++ b/commands/100-games/startplaying.js @@ -34,7 +34,7 @@ module.exports = { body = body.concat('fields *;'); let res = await getGameJson(body); - res = res.filter(entry => entry.status !== 6); + res = res.filter(entry => entry.game_type == 0); res.sort((a, b) => parseInt(b.total_rating_count) - parseInt(a.total_rating_count)); if (!res[0]) return interaction.editReply({ content: 'No game found for the options supplied.', ephemeral: true });