fix dm issue with resetpassword.ts
parent
f231cc4fdd
commit
88e2273f5f
|
@ -31,8 +31,7 @@ export default class ResetPassword extends Command {
|
||||||
+ `You will be asked to change your password when you log back in, \`(current) UNIX password\` is \`${tempPass}@\`, then create a password that is at least 12 characters long, with at least one number, special character, and an uppercase letter.\n`
|
+ `You will be asked to change your password when you log back in, \`(current) UNIX password\` is \`${tempPass}@\`, then create a password that is at least 12 characters long, with at least one number, special character, and an uppercase letter.\n`
|
||||||
+ 'Bear in mind that when you enter your password, it will be blank, so be careful not to type in your password incorrectly.');
|
+ 'Bear in mind that when you enter your password, it will be blank, so be careful not to type in your password incorrectly.');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.code === 50007) completeMessage += '\n*Unable to DM user*';
|
completeMessage += '\n*Unable to DM user*';
|
||||||
throw error;
|
|
||||||
}
|
}
|
||||||
return msg.edit(completeMessage);
|
return msg.edit(completeMessage);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue