catch error

This commit is contained in:
Erik 2022-08-22 11:24:18 +03:00
parent b67274130e
commit 2f3a5a7a86
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -439,7 +439,7 @@ class Infraction {
this.resolved = true; this.resolved = true;
await this.updateMessages(); await this.updateMessages();
await this.save(); await this.save();
if(notify && this.target) await this.target.send(`Your infraction **#${this.case}** on **${this.guild.name}** was resolved.`); if(notify && this.target) await this.target.send(`Your infraction **#${this.case}** on **${this.guild.name}** was resolved.`).catch(() => null);
} }
async unresolve(staff, reason) { async unresolve(staff, reason) {