summary refs log tree commit diff
path: root/src/util/entities/Channel.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-11-29 20:30:45 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-11-29 20:30:45 +1100
commitfed9c79bec6eeb01bf297f1154f89ddb0e364a43 (patch)
tree6ca78f75b297938cf351dbbb6321514098f84648 /src/util/entities/Channel.ts
parentfix sorting (diff)
downloadserver-fix/channel_ordering.tar.xz
whatever the fuck this is fix/channel_ordering
Diffstat (limited to 'src/util/entities/Channel.ts')
-rw-r--r--src/util/entities/Channel.ts5
1 files changed, 3 insertions, 2 deletions
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,