From 95ff366a95d46beb6513b8f48bf12d1a8f9fa9c7 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Wed, 4 Oct 2023 23:52:58 +1100 Subject: fix sorting --- src/gateway/opcodes/Identify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index 330ce561..12148800 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -278,7 +278,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { ); return channel; }) - .sort((a, b) => a.position - b.position); + .sort((a, b) => b.position - a.position); if (user.bot) { pending_guilds.push(member.guild); -- cgit 1.5.1