summary refs log tree commit diff
path: root/gateway
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-23 12:46:20 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-23 12:46:20 +1000
commit068feaf3f4981acc6a0c300a075cb8770ef0b1a0 (patch)
tree5d040ddadf359d048587c232520b93251b601b4e /gateway
parentConfigurable max attachment size (diff)
downloadserver-068feaf3f4981acc6a0c300a075cb8770ef0b1a0.tar.xz
Fix typo that sent new/removed bans to those without BAN_MEMBERS
Diffstat (limited to 'gateway')
-rw-r--r--gateway/src/listener/listener.ts2
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":