case update

This commit is contained in:
Erik 2022-06-18 14:01:53 +03:00
parent b38206a795
commit d5aea865bd
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

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