This commit is contained in:
Erik 2022-07-30 11:02:00 +03:00
parent e93a4c2acb
commit 987c9220e5
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

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