forked from Galactic/galactic-bot
fix for empty value for thresholds
This commit is contained in:
parent
828b6ea9ca
commit
3c54a90c0c
@ -149,7 +149,7 @@ class AutoModerationSetting extends Setting {
|
||||
value: Object.entries(setting.thresholds).reduce((acc, [points, action]) => {
|
||||
acc.push(`**${points}:** \`${action.type}\`${action.length ? ', ' + resolver.timeAgo(action.length) : ''}`);
|
||||
return acc;
|
||||
}, []).join('\n')
|
||||
}, []).join('\n') || '`N/A`'
|
||||
}
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user