fix for empty value for thresholds

This commit is contained in:
Erik 2020-09-01 23:33:24 +03:00
parent 828b6ea9ca
commit 3c54a90c0c

View File

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