Another Fix
This commit is contained in:
parent
a0e96f50c2
commit
e65297dcdf
|
|
@ -23,7 +23,8 @@ module.exports.execute = async (interaction) => {
|
||||||
passwordToSet = Array.from({ length }, () => chars.charAt(Math.floor(Math.random() * chars.length))).join('');
|
passwordToSet = Array.from({ length }, () => chars.charAt(Math.floor(Math.random() * chars.length))).join('');
|
||||||
}
|
}
|
||||||
try {
|
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 });
|
await interaction.editReply({ content: `Your extension password has been reset successfully! Your new password is: ||\`${passwordToSet}\`||`, ephemeral: true });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log.error(error);
|
log.error(error);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue