3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-16 14:11:50 +00:00

Fix automod mute action

This commit is contained in:
Dragory 2020-04-03 16:40:05 +03:00
parent 60fdae5df9
commit 1ac8c4e444
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -1009,8 +1009,8 @@ export class AutomodPlugin extends ZeppelinPlugin<TConfigSchema, ICustomOverride
} }
if (userIdsToMute.length) { if (userIdsToMute.length) {
for (const member of userIdsToMute) { for (const userId of userIdsToMute) {
await this.getMutes().muteUser(member.id, duration, reason, { contactMethods, caseArgs }); await this.getMutes().muteUser(userId, duration, reason, { contactMethods, caseArgs });
} }
actionsTaken.push("mute"); actionsTaken.push("mute");