summary refs log tree commit diff
path: root/src/util/entities
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/entities')
-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,