forked from Galactic/galactic-bot
bugfix
This commit is contained in:
parent
e93a4c2acb
commit
987c9220e5
@ -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' };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user