PluginHelper Encryptcord

Actually fix this
This commit is contained in:
thororen 2024-07-12 23:09:53 -04:00 committed by GitHub
parent 71c585be16
commit 3e32bbccfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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