1
0
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:
Madeline 2022-08-23 12:46:20 +10:00
parent f9edbab0c6
commit 068feaf3f4

View File

@ -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":