From d5aea865bdf8acf5befa9aea88431b9b763deef3 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sat, 18 Jun 2022 14:01:53 +0300 Subject: [PATCH] case update --- src/structure/interfaces/Infraction.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/structure/interfaces/Infraction.js b/src/structure/interfaces/Infraction.js index 0ff69d7..1f44f53 100644 --- a/src/structure/interfaces/Infraction.js +++ b/src/structure/interfaces/Infraction.js @@ -83,10 +83,10 @@ class Infraction { const { moderation, dminfraction } = await this.guild.settings(); //Increment CaseId, should only be called if making a new infraction. - if (!this.guild._settings.caseId) this.guild._settings.caseId = 0; - this.guild._settings.caseId++; - this.case = this.guild._settings.caseId; - await this.guild.updateSettings({ + if (!this.guild._data.caseId) this.guild._data.caseId = 0; + this.guild._data.caseId++; + this.case = this.guild._data.caseId; + await this.guild.updateData({ caseId: this.case });