summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/entities/Guild.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/entities/Guild.ts b/src/util/entities/Guild.ts

index aa6816c2..aea911eb 100644 --- a/src/util/entities/Guild.ts +++ b/src/util/entities/Guild.ts
@@ -462,6 +462,8 @@ export class Guild extends BaseClass { select: { channel_ordering: true }, }); + guild.channel_ordering ??= []; + let position; if (typeof insertPoint == "string") position = guild.channel_ordering.indexOf(insertPoint) + 1; else position = insertPoint;