From 11ac39dc19a5eca7be21a6ba09aef1ff1db97301 Mon Sep 17 00:00:00 2001 From: Bsian Date: Mon, 23 Dec 2019 15:24:46 +0000 Subject: [PATCH] Stop erroring if user isn't in server --- src/class/Util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index 03e702d..f967e24 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -156,7 +156,7 @@ export default class Util { this.exec(`lock ${username}`); const tasks = [ this.exec(`deluser ${username} --remove-home --backup-to /management/Archives && rm -rf -R /home/${username}`), - this.client.removeGuildMemberRole('446067825673633794', account.userID, '546457886440685578', 'Cloud Account Deleted'), + this.client.removeGuildMemberRole('446067825673633794', account.userID, '546457886440685578', 'Cloud Account Deleted').catch(), this.client.db.Account.deleteOne({ username }), this.exec(`groupdel ${username}`), ];