mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
PluginHelper Encryptcord
Actually fix this
This commit is contained in:
parent
71c585be16
commit
3e32bbccfe
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue