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' };