summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-07-11 13:25:23 +0200
committerRory& <root@rory.gay>2025-09-29 18:38:06 +0200
commit72ba6e02b1f692021f56bb05cc3d4ff32f4f720c (patch)
tree4b582f29ec442ece8d5967413c9a67012614a1a6 /src
parentAdd new field to guild update schema (diff)
downloadserver-ts-72ba6e02b1f692021f56bb05cc3d4ff32f4f720c.tar.xz
Make guild channels nullable
Diffstat (limited to 'src')
-rw-r--r--src/util/entities/Guild.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/util/entities/Guild.ts b/src/util/entities/Guild.ts

index 30cbb5734..2df449559 100644 --- a/src/util/entities/Guild.ts +++ b/src/util/entities/Guild.ts
@@ -72,9 +72,9 @@ export const PublicGuildRelations = [ engine: dbEngine, }) export class Guild extends BaseClass { - @Column({ nullable: true }) + @Column({ type: String, nullable: true }) @RelationId((guild: Guild) => guild.afk_channel) - afk_channel_id?: string; + afk_channel_id?: string | null; @JoinColumn({ name: "afk_channel_id" }) @ManyToOne(() => Channel) @@ -231,17 +231,17 @@ export class Guild extends BaseClass { @Column() premium_tier?: number; // crowd premium level - @Column({ nullable: true }) + @Column({ type: String, nullable: true }) @RelationId((guild: Guild) => guild.public_updates_channel) - public_updates_channel_id: string; + public_updates_channel_id: string | null; @JoinColumn({ name: "public_updates_channel_id" }) @ManyToOne(() => Channel) public_updates_channel?: Channel; - @Column({ nullable: true }) + @Column({ type: String, nullable: true }) @RelationId((guild: Guild) => guild.rules_channel) - rules_channel_id?: string; + rules_channel_id?: string | null; @JoinColumn({ name: "rules_channel_id" }) @ManyToOne(() => Channel) @@ -253,9 +253,9 @@ export class Guild extends BaseClass { @Column({ nullable: true }) splash?: string; - @Column({ nullable: true }) + @Column({ type: String, nullable: true }) @RelationId((guild: Guild) => guild.system_channel) - system_channel_id?: string; + system_channel_id?: string | null; @JoinColumn({ name: "system_channel_id" }) @ManyToOne(() => Channel)