Another Fix

This commit is contained in:
Christopher Cookman 2025-11-18 12:11:29 -07:00
parent a0e96f50c2
commit e65297dcdf

View file

@ -23,7 +23,8 @@ module.exports.execute = async (interaction) => {
passwordToSet = Array.from({ length }, () => chars.charAt(Math.floor(Math.random() * chars.length))).join('');
}
try {
await fpbx.updateExtPassword(lookup.extension, passwordToSet);
const updated = await fpbx.updateExtPassword(lookup.extension, passwordToSet);
console.log(updated)
await interaction.editReply({ content: `Your extension password has been reset successfully! Your new password is: ||\`${passwordToSet}\`||`, ephemeral: true });
} catch (error) {
log.error(error);