mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-26 01:04:51 +00:00
Fix typo that sent new/removed bans to those without BAN_MEMBERS
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user