From 13b08256276daa0bd5fdb075b224a079b60d6dd3 Mon Sep 17 00:00:00 2001 From: baz Date: Sat, 30 Dec 2023 01:36:41 +0000 Subject: [PATCH] Rename deletegameentry to deletegame --- commands/100-games/{deleteGameEntry.js => deletegame.js} | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) rename commands/100-games/{deleteGameEntry.js => deletegame.js} (91%) 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);