From a0bb249ebcfc406bb27607130cf58fddde1a0c40 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Thu, 13 Nov 2025 09:04:51 -0700 Subject: [PATCH] Another Fix --- index.js | 4 +++- interactionHandlers/modals/resetPasswordModal.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index f749b64..01b1176 100644 --- a/index.js +++ b/index.js @@ -139,7 +139,9 @@ client.on('interactionCreate', async interaction => { } break; case Discord.InteractionType.ModalSubmit: - console.log(JSON.stringify(interaction, null, 2)); + 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 61d3b60..9877de9 100644 --- a/interactionHandlers/modals/resetPasswordModal.js +++ b/interactionHandlers/modals/resetPasswordModal.js @@ -11,7 +11,7 @@ module.exports.execute = async (interaction) => { return; } await interaction.deferReply({ ephemeral: true }); - console.log(JSON.stringify(interaction, null, 2)); + // console.log(JSON.stringify(interaction, null, 2)); 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