Another Fix
This commit is contained in:
parent
e65297dcdf
commit
976bcf2672
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue