Reload with password change duh
This commit is contained in:
parent
1a19ca954d
commit
de9817e576
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue