Another Fix
This commit is contained in:
parent
a954c845cf
commit
83de989e97
3
index.js
3
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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue