Stop erroring if user isn't in server
parent
11ac39dc19
commit
bbaf9f55db
|
@ -156,10 +156,10 @@ 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').catch(),
|
||||
this.client.db.Account.deleteOne({ username }),
|
||||
this.exec(`groupdel ${username}`),
|
||||
];
|
||||
this.client.removeGuildMemberRole('446067825673633794', account.userID, '546457886440685578', 'Cloud Account Deleted').catch();
|
||||
// @ts-ignore
|
||||
await Promise.all(tasks);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue