fix silent arg for infractions

This commit is contained in:
Erik 2022-09-10 10:49:19 +03:00
parent ba81db17f9
commit df3a11668f
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -51,6 +51,7 @@ class Infraction {
this.reason = data.reason || 'N/A';
this.silent = data.silent || false;
this.points = data.points || 0;
this.expiration = data.expiration > 0 ? Date.now() + data.expiration : null; // Time when the points expire in milliseconds
this.totalPoints = 0;