Another Fix

This commit is contained in:
Christopher Cookman 2025-11-18 12:13:59 -07:00
parent e65297dcdf
commit 976bcf2672

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 {
const updated = await fpbx.updateExtPassword(lookup.extension, passwordToSet);
//const updated = await fpbx.updateExtPassword(lookup.extension, passwordToSet);
const updated = await fpbx.updateExtName(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) {