From 83de989e978f62d2f5208607bc6602e31a5c7bc1 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Thu, 13 Nov 2025 09:05:57 -0700 Subject: [PATCH] Another Fix --- index.js | 3 --- interactionHandlers/modals/resetPasswordModal.js | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index 931ac50..9cbfd22 100644 --- a/index.js +++ b/index.js @@ -139,9 +139,6 @@ client.on('interactionCreate', async interaction => { } break; case Discord.InteractionType.ModalSubmit: - console.log(JSON.stringify(interaction, null, 2, (key, value) => - typeof value === 'BigInt' ? value.toString() : value - )); const modal = require(`./interactionHandlers/modals/${interaction.customId}`); if (!modal) return; diff --git a/interactionHandlers/modals/resetPasswordModal.js b/interactionHandlers/modals/resetPasswordModal.js index 9877de9..e85954a 100644 --- a/interactionHandlers/modals/resetPasswordModal.js +++ b/interactionHandlers/modals/resetPasswordModal.js @@ -12,6 +12,7 @@ module.exports.execute = async (interaction) => { } await interaction.deferReply({ ephemeral: true }); // console.log(JSON.stringify(interaction, null, 2)); + const newPassword = interaction.fields.getTextInputValue('newPassword'); let passwordToSet = newPassword; if (!newPassword || newPassword.trim() === '') { // Generate password based on process.env.PASSWORD_LENGTH and process.env.PASSWORD_CHARS or default to 32 alphanumeric with caps