1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 02:12:40 +01:00

fix sorting

This commit is contained in:
Madeline 2023-10-04 23:52:58 +11:00
parent 6bf4637a03
commit 95ff366a95
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

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