Reload with password change duh

This commit is contained in:
Christopher Cookman 2025-11-21 22:36:29 -07:00
parent 1a19ca954d
commit de9817e576

View file

@ -26,7 +26,7 @@ module.exports.execute = async (interaction) => {
try {
const updated = await fpbx.updateExtPassword(lookup.extension, oldName, passwordToSet);
//const updated = await fpbx.updateExtName(lookup.extension, passwordToSet);
console.log(updated)
await fpbx.reload();
await interaction.editReply({ content: `Your extension password has been reset successfully! Your new password is: ||\`${passwordToSet}\`||`, ephemeral: true });
} catch (error) {
log.error(error);