diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-24 12:59:43 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-24 12:59:43 +0200 |
commit | bff6087c8bb6a5dffcb70f6b02cb05538f885c9b (patch) | |
tree | c3b441202cc52c073c1a49a136a38f7a39a5e7d3 /gateway | |
parent | :arrow_up: update packages (diff) | |
download | server-bff6087c8bb6a5dffcb70f6b02cb05538f885c9b.tar.xz |
:bug: fix event listener
Diffstat (limited to 'gateway')
-rw-r--r-- | gateway/src/listener/listener.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gateway/src/listener/listener.ts b/gateway/src/listener/listener.ts index 032b2375..060de65b 100644 --- a/gateway/src/listener/listener.ts +++ b/gateway/src/listener/listener.ts @@ -153,9 +153,11 @@ async function consume(this: WebSocket, opts: EventOpts) { !permission .overwriteChannel(data.permission_overwrites) .has("VIEW_CHANNEL") - ) + ) { return; - // No break needed here, we need to call the listenEvent function below + } + this.events[id] = await listenEvent(id, consumer, listenOpts); + break; case "RELATIONSHIP_ADD": this.events[data.user.id] = await listenEvent( data.user.id, |