From 3e32bbccfe53e89790690f0e55f50a218a51f921 Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Fri, 12 Jul 2024 23:09:53 -0400 Subject: [PATCH] PluginHelper Encryptcord Actually fix this --- src/plugins/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/index.ts b/src/plugins/index.ts index 704b5bac..0081655c 100644 --- a/src/plugins/index.ts +++ b/src/plugins/index.ts @@ -174,7 +174,7 @@ export function subscribePluginFluxEvents(p: Plugin, fluxDispatcher: typeof Flux logger.debug("Subscribing to flux events of plugin", p.name); for (const [event, handler] of Object.entries(p.flux)) { const wrappedHandler = p.flux[event] = function () { - if (p.name === "Encryptcord" && event === "MESSAGE_CREATE") continue; + if (p.name === "Encryptcord" && event === "MESSAGE_CREATE") return; try { const res = handler.apply(p, arguments as any); return res instanceof Promise