mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-31 11:43:32 -05:00
Fix PluginHelper Error Logging
This commit is contained in:
parent
c8cf4f142d
commit
71c585be16
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);
|
logger.debug("Subscribing to flux events of plugin", p.name);
|
||||||
for (const [event, handler] of Object.entries(p.flux)) {
|
for (const [event, handler] of Object.entries(p.flux)) {
|
||||||
const wrappedHandler = p.flux[event] = function () {
|
const wrappedHandler = p.flux[event] = function () {
|
||||||
if (p.name === "Encryptcord") return;
|
if (p.name === "Encryptcord" && event === "MESSAGE_CREATE") continue;
|
||||||
try {
|
try {
|
||||||
const res = handler.apply(p, arguments as any);
|
const res = handler.apply(p, arguments as any);
|
||||||
return res instanceof Promise
|
return res instanceof Promise
|
||||||
|
|
Loading…
Reference in a new issue