From 2f3a5a7a86f11e7e13549198fd023c6fe3dce050 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 22 Aug 2022 11:24:18 +0300 Subject: [PATCH] catch error --- src/structure/interfaces/Infraction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structure/interfaces/Infraction.js b/src/structure/interfaces/Infraction.js index c3d175d..88756ea 100644 --- a/src/structure/interfaces/Infraction.js +++ b/src/structure/interfaces/Infraction.js @@ -439,7 +439,7 @@ class Infraction { this.resolved = true; await this.updateMessages(); 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) {