case update
This commit is contained in:
parent
b38206a795
commit
d5aea865bd
@ -83,10 +83,10 @@ class Infraction {
|
|||||||
const { moderation, dminfraction } = await this.guild.settings();
|
const { moderation, dminfraction } = await this.guild.settings();
|
||||||
|
|
||||||
//Increment CaseId, should only be called if making a new infraction.
|
//Increment CaseId, should only be called if making a new infraction.
|
||||||
if (!this.guild._settings.caseId) this.guild._settings.caseId = 0;
|
if (!this.guild._data.caseId) this.guild._data.caseId = 0;
|
||||||
this.guild._settings.caseId++;
|
this.guild._data.caseId++;
|
||||||
this.case = this.guild._settings.caseId;
|
this.case = this.guild._data.caseId;
|
||||||
await this.guild.updateSettings({
|
await this.guild.updateData({
|
||||||
caseId: this.case
|
caseId: this.case
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user