fix sorting

This commit is contained in:
Madeline
2023-10-04 23:52:58 +11:00
parent 6bf4637a03
commit 95ff366a95

View File

@@ -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);