Another Fix

This commit is contained in:
Christopher Cookman 2025-11-13 09:04:51 -07:00
parent 50015218a6
commit a0bb249ebc
2 changed files with 4 additions and 2 deletions

View file

@ -139,7 +139,9 @@ client.on('interactionCreate', async interaction => {
} }
break; break;
case Discord.InteractionType.ModalSubmit: 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}`); const modal = require(`./interactionHandlers/modals/${interaction.customId}`);
if (!modal) return; if (!modal) return;

View file

@ -11,7 +11,7 @@ module.exports.execute = async (interaction) => {
return; return;
} }
await interaction.deferReply({ ephemeral: true }); await interaction.deferReply({ ephemeral: true });
console.log(JSON.stringify(interaction, null, 2)); // console.log(JSON.stringify(interaction, null, 2));
let passwordToSet = newPassword; let passwordToSet = newPassword;
if (!newPassword || newPassword.trim() === '') { if (!newPassword || newPassword.trim() === '') {
// Generate password based on process.env.PASSWORD_LENGTH and process.env.PASSWORD_CHARS or default to 32 alphanumeric with caps // Generate password based on process.env.PASSWORD_LENGTH and process.env.PASSWORD_CHARS or default to 32 alphanumeric with caps