mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-10 04:32:35 +01:00
Fix typo that sent new/removed bans to those without BAN_MEMBERS
This commit is contained in:
parent
f9edbab0c6
commit
068feaf3f4
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user