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 });