Remove release date check from planGame

This commit is contained in:
baz 2024-02-11 21:58:18 +00:00
parent 3f0084d6e2
commit 6d2668f5cb
1 changed files with 0 additions and 3 deletions

View File

@ -36,9 +36,6 @@ module.exports = {
if (!res[0]) return interaction.followUp({ content: 'No game found for the options supplied.', ephemeral: true }); if (!res[0]) return interaction.followUp({ content: 'No game found for the options supplied.', ephemeral: true });
const game = res[0]; const game = res[0];
const release_date = game.first_release_date;
if (!release_date || (release_date * 1000) > Date.now()) return interaction.followUp({ content: `${game.name} is not yet released.`, ephemeral: true });
const gameDatabaseEntry = await checkGameStorage(game); const gameDatabaseEntry = await checkGameStorage(game);
if (!(await createPlanningGameEntry(userDatabaseEntry, gameDatabaseEntry))) return interaction.followUp({ content: `${game.name} already planned.`, ephemeral: true }); if (!(await createPlanningGameEntry(userDatabaseEntry, gameDatabaseEntry))) return interaction.followUp({ content: `${game.name} already planned.`, ephemeral: true });