From fed9c79bec6eeb01bf297f1154f89ddb0e364a43 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Wed, 29 Nov 2023 20:30:45 +1100 Subject: whatever the fuck this is --- src/util/entities/Channel.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/util/entities/Channel.ts') diff --git a/src/util/entities/Channel.ts b/src/util/entities/Channel.ts index 169eab3d..b28bfed0 100644 --- a/src/util/entities/Channel.ts +++ b/src/util/entities/Channel.ts @@ -300,8 +300,9 @@ export class Channel extends BaseClass { // TODO: eagerly auto generate position of all guild channels const position = - (channel.type === ChannelType.UNHANDLED ? 0 : channel.position) || - 0; + channel.type == ChannelType.GUILD_CATEGORY + ? Number.MAX_SAFE_INTEGER // add categories to the bottom + : channel.position ?? 0; channel = { ...channel, -- cgit 1.5.1