From 130afa61eb599f90c751bcc8dc7706e0f60f1da1 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Fri, 22 May 2020 20:52:23 +0300 Subject: [PATCH] Run Automod on message edits --- backend/src/plugins/Automod/Automod.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/plugins/Automod/Automod.ts b/backend/src/plugins/Automod/Automod.ts index 9949cc14..de10d14d 100644 --- a/backend/src/plugins/Automod/Automod.ts +++ b/backend/src/plugins/Automod/Automod.ts @@ -348,6 +348,7 @@ export class AutomodPlugin extends ZeppelinPlugin this.onMessageCreate(msg); this.savedMessages.events.on("create", this.onMessageCreateFn); + this.savedMessages.events.on("update", this.onMessageCreateFn); } protected getModActions(): ModActionsPlugin { @@ -365,6 +366,7 @@ export class AutomodPlugin extends ZeppelinPlugin