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 9acfe9b32a
commit bf31c3d8cf
+1 -1
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":