diff options
author | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-04-10 13:54:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-10 13:54:05 +0300 |
commit | 6b57c358fc5d72620673691e03c368513d8e5a65 (patch) | |
tree | 98e1044a29974542d1cbd7cfad6c8c67d9061278 /util/src/entities/Guild.ts | |
parent | Update passwordStrength.ts (diff) | |
download | server-6b57c358fc5d72620673691e03c368513d8e5a65.tar.xz |
Update Guild.ts
Diffstat (limited to '')
-rw-r--r-- | util/src/entities/Guild.ts | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/util/src/entities/Guild.ts b/util/src/entities/Guild.ts index 9ac148ee..70bb41c5 100644 --- a/util/src/entities/Guild.ts +++ b/util/src/entities/Guild.ts @@ -187,11 +187,11 @@ export class Guild extends BaseClass { @Column({ nullable: true }) @RelationId((guild: Guild) => guild.owner) - owner_id: string; + owner_id?: string; // optional to allow for ownerless guilds @JoinColumn({ name: "owner_id", referencedColumnName: "id" }) @ManyToOne(() => User) - owner: User; + owner?: User; // optional to allow for ownerless guilds @Column({ nullable: true }) preferred_locale?: string; @@ -200,7 +200,7 @@ export class Guild extends BaseClass { premium_subscription_count?: number; @Column({ nullable: true }) - premium_tier?: number; // nitro boost level + premium_tier?: number; // crowd premium level @Column({ nullable: true }) @RelationId((guild: Guild) => guild.public_updates_channel) @@ -269,6 +269,10 @@ export class Guild extends BaseClass { @Column({ nullable: true }) nsfw?: boolean; + + // TODO: nested guilds + @Column({ nullable: true }) + parent?: string; // only for developer portal permissions?: number; @@ -308,7 +312,7 @@ export class Guild extends BaseClass { verification_level: 0, welcome_screen: { enabled: false, - description: "No description", + description: "Fill in your description", welcome_channels: [], }, widget_enabled: true, // NB: don't set it as false to prevent artificial restrictions |