Skip to content

Commit

Permalink
Sort /channels for gateway consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
DEVTomatoCake authored and MaddyUnderStars committed Jul 3, 2024
1 parent e116e93 commit 6ca12cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/routes/guilds/#guild_id/channels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ router.get(
channel.guild,
);
}
channels.sort((a, b) => a.position - b.position);

res.json(channels);
},
Expand Down

0 comments on commit 6ca12cb

Please sign in to comment.