From 88e2273f5fb7759cdfa30f080b8509fbbd27082f Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 6 Jan 2024 19:01:40 -0500 Subject: [PATCH] fix dm issue with resetpassword.ts --- src/commands/resetpassword.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commands/resetpassword.ts b/src/commands/resetpassword.ts index 7cc10ed..5785dd1 100644 --- a/src/commands/resetpassword.ts +++ b/src/commands/resetpassword.ts @@ -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` + '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) { - if (error.code === 50007) completeMessage += '\n*Unable to DM user*'; - throw error; + completeMessage += '\n*Unable to DM user*'; } return msg.edit(completeMessage); } catch (error) {