diff --git a/commands/100-games/deleteGameEntry.js b/commands/100-games/deletegame.js similarity index 91% rename from commands/100-games/deleteGameEntry.js rename to commands/100-games/deletegame.js index 289dc96..0e49743 100644 --- a/commands/100-games/deleteGameEntry.js +++ b/commands/100-games/deletegame.js @@ -3,7 +3,7 @@ const { getUserRegistration, deleteBeatenGameNum, checkGameStorageId } = require module.exports = { data: new SlashCommandBuilder() - .setName('deletegameentry') + .setName('deletegame') .setDescription('Delete a game that you have beaten from the 100 game challenge!') .addNumberOption(option => option.setName('beatgamenumber').setDescription('Index of the game to delete in the list of beaten games.').setMinValue(1).setMaxValue(100)), async execute(interaction) { @@ -15,6 +15,9 @@ module.exports = { if (beatGameNumber) { result = await deleteBeatenGameNum(beatGameNumber, userDatabaseEntry); } + else { + // TODO: Delete most recent game entry. + } if (result) { const game = await checkGameStorageId(result.gameId);