From 09f4d010dfa951f8997e468350544a80609923cd Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 13 Jul 2022 00:50:41 +0300 Subject: [PATCH] fixes --- src/structure/client/ModerationManager.js | 3 +-- src/structure/interfaces/Infraction.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/structure/client/ModerationManager.js b/src/structure/client/ModerationManager.js index a90b138..1d4a77f 100644 --- a/src/structure/client/ModerationManager.js +++ b/src/structure/client/ModerationManager.js @@ -187,7 +187,6 @@ class ModerationManager { } for (const [, data] of Object.entries(fails)) { - console.log(data); const { dictionary, targetType } = data.infraction; const str = `${Emojis.failure} ${invoker.format('INFRACTION_FAIL', { infraction: dictionary.present, @@ -250,7 +249,7 @@ class ModerationManager { expiration = 0; if (modpoints.enabled) { points = info.points || modpoints.points[type]; - expiration = info.expiration || modpoints.expirations[type] * 1000; + expiration = info.expiration || modpoints.expirations[type]; if(reason) for (const [phrase, amount] of Object.entries(modpoints.associations)) { if (reason.toLowerCase().includes(phrase)) points = amount; } diff --git a/src/structure/interfaces/Infraction.js b/src/structure/interfaces/Infraction.js index 3d3246c..664070b 100644 --- a/src/structure/interfaces/Infraction.js +++ b/src/structure/interfaces/Infraction.js @@ -187,7 +187,7 @@ class Infraction { description += `\n${this.guild.format('INFRACTION_DESCRIPTIONPOINTS', { points: this.points, total: this.totalPoints, - expires: Util.duration(this.pointsExpiration) + expires: Util.duration(this.points) })}`; }