fix: increase massban ban event ignore time

This commit is contained in:
Dragory 2021-10-26 22:42:22 +03:00
parent 2fd5bb3d17
commit d7c6e34695
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -91,8 +91,8 @@ export const MassbanCmd = modActionsCmd({
try {
// Ignore automatic ban cases and logs
// We create our own cases below and post a single "mass banned" log instead
ignoreEvent(pluginData, IgnoredEventType.Ban, userId, 120 * 1000);
pluginData.state.serverLogs.ignoreLog(LogType.MEMBER_BAN, userId, 120 * 1000);
ignoreEvent(pluginData, IgnoredEventType.Ban, userId, 30 * MINUTES);
pluginData.state.serverLogs.ignoreLog(LogType.MEMBER_BAN, userId, 30 * MINUTES);
await pluginData.guild.bans.create(userId as Snowflake, {
days: deleteDays,