automod should use the length from the escalation

This commit is contained in:
Erik 2022-07-12 00:10:32 +03:00
parent 7f575ce617
commit 73cae5441c
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -328,7 +328,7 @@ class ModerationManager {
executor: info.executor,
reason: stripIndents`${reason}
*${wrapper.format('INFRACTION_AUTOMODESCALATION')}*`,
duration: info.duration,
duration: response.escalation.length ? response.escalation.length * 1000 : null, // info.duration,
data: info.data,
points,
expiration,