summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-15 08:02:05 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-15 08:02:05 +0100
commit3ea1dff2203e614883579c18319976b12a4c898e (patch)
treeb5b6f459a0367d504ad3a5649f1d8c7ee718931e /src
parentswitch to mongoose (diff)
downloadserver-3ea1dff2203e614883579c18319976b12a4c898e.tar.xz
:bug: fix permission dispatch
Diffstat (limited to 'src')
-rw-r--r--src/listener/listener.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listener/listener.ts b/src/listener/listener.ts

index caf0456d..24b05765 100644 --- a/src/listener/listener.ts +++ b/src/listener/listener.ts
@@ -27,7 +27,7 @@ export async function dispatch(this: WebSocket, document: Event) { if (document.guild_id) { if (!this.intents.has("GUILDS")) return; const channel_id = document.channel_id || document.data?.channel_id; - permission = new Permissions(await getPermission(this.userid, document.guild_id, channel_id)); + permission = await getPermission(this.userid, document.guild_id, channel_id); } console.log("event", document);