diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-08-25 20:50:34 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-08-25 20:50:34 +1000 |
commit | 11bc0b56120efd6b9421c5ed900a970f35cc4241 (patch) | |
tree | 5c2935a7d3e61ae7a06da349cf23e95f7fc0e0c0 | |
parent | Switch to staging ratelimiter (diff) | |
parent | Fix typo that sent new/removed bans to those without BAN_MEMBERS (diff) | |
download | server-11bc0b56120efd6b9421c5ed900a970f35cc4241.tar.xz |
Merge branch 'slowcord' of github.com:MaddyUnderStars/fosscord-server into slowcord
-rw-r--r-- | gateway/src/listener/listener.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway/src/listener/listener.ts b/gateway/src/listener/listener.ts index 8a90ce0c..5975fbb7 100644 --- a/gateway/src/listener/listener.ts +++ b/gateway/src/listener/listener.ts @@ -204,7 +204,7 @@ async function consume(this: WebSocket, opts: EventOpts) { break; case "GUILD_BAN_ADD": case "GUILD_BAN_REMOVE": - if (!permission.has("BAN_MEMBERS")) break; + if (!permission.has("BAN_MEMBERS")) return; break; case "VOICE_STATE_UPDATE": case "MESSAGE_CREATE": |