From 987c9220e5e17b565852b3f6d74f12ea79d7ba9f Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sat, 30 Jul 2022 11:02:00 +0300 Subject: [PATCH] bugfix --- .../components/settings/moderation/ModerationPoints.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/structure/components/settings/moderation/ModerationPoints.js b/src/structure/components/settings/moderation/ModerationPoints.js index 8a1eb91..191ac90 100644 --- a/src/structure/components/settings/moderation/ModerationPoints.js +++ b/src/structure/components/settings/moderation/ModerationPoints.js @@ -84,13 +84,13 @@ class ModerationPoints extends Setting { async execute(interaction, opts, setting) { - const { points, type, enabled, associate, expire, multiplier } = opts; + const { points, infraction, enabled, associate, expire, multiplier } = opts; if (multiplier) setting.multiplier = multiplier.value; if (enabled) setting.enabled = enabled.value; - if (expire) setting.expirations[type.value] = expire.value * 1000; + if (expire) setting.expirations[infraction.value] = expire.value * 1000; if (associate) setting.associations[associate.value.toLowerCase()] = points.value; - if (type && points) setting.points[type.value] = points.value; + if (infraction && points) setting.points[infraction.value] = points.value; return { index: 'SETTING_SUCCESS_ALT' };