Stop erroring if user isn't in server

merge-requests/1/merge
Bsian 2019-12-23 15:24:46 +00:00
parent d445108a98
commit 11ac39dc19
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ export default class Util {
this.exec(`lock ${username}`); this.exec(`lock ${username}`);
const tasks = [ const tasks = [
this.exec(`deluser ${username} --remove-home --backup-to /management/Archives && rm -rf -R /home/${username}`), 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.client.db.Account.deleteOne({ username }),
this.exec(`groupdel ${username}`), this.exec(`groupdel ${username}`),
]; ];