Update Guild.ts
This commit is contained in:
parent
07ed88ff6a
commit
6b57c358fc
@ -187,11 +187,11 @@ export class Guild extends BaseClass {
|
|||||||
|
|
||||||
@Column({ nullable: true })
|
@Column({ nullable: true })
|
||||||
@RelationId((guild: Guild) => guild.owner)
|
@RelationId((guild: Guild) => guild.owner)
|
||||||
owner_id: string;
|
owner_id?: string; // optional to allow for ownerless guilds
|
||||||
|
|
||||||
@JoinColumn({ name: "owner_id", referencedColumnName: "id" })
|
@JoinColumn({ name: "owner_id", referencedColumnName: "id" })
|
||||||
@ManyToOne(() => User)
|
@ManyToOne(() => User)
|
||||||
owner: User;
|
owner?: User; // optional to allow for ownerless guilds
|
||||||
|
|
||||||
@Column({ nullable: true })
|
@Column({ nullable: true })
|
||||||
preferred_locale?: string;
|
preferred_locale?: string;
|
||||||
@ -200,7 +200,7 @@ export class Guild extends BaseClass {
|
|||||||
premium_subscription_count?: number;
|
premium_subscription_count?: number;
|
||||||
|
|
||||||
@Column({ nullable: true })
|
@Column({ nullable: true })
|
||||||
premium_tier?: number; // nitro boost level
|
premium_tier?: number; // crowd premium level
|
||||||
|
|
||||||
@Column({ nullable: true })
|
@Column({ nullable: true })
|
||||||
@RelationId((guild: Guild) => guild.public_updates_channel)
|
@RelationId((guild: Guild) => guild.public_updates_channel)
|
||||||
@ -269,6 +269,10 @@ export class Guild extends BaseClass {
|
|||||||
|
|
||||||
@Column({ nullable: true })
|
@Column({ nullable: true })
|
||||||
nsfw?: boolean;
|
nsfw?: boolean;
|
||||||
|
|
||||||
|
// TODO: nested guilds
|
||||||
|
@Column({ nullable: true })
|
||||||
|
parent?: string;
|
||||||
|
|
||||||
// only for developer portal
|
// only for developer portal
|
||||||
permissions?: number;
|
permissions?: number;
|
||||||
@ -308,7 +312,7 @@ export class Guild extends BaseClass {
|
|||||||
verification_level: 0,
|
verification_level: 0,
|
||||||
welcome_screen: {
|
welcome_screen: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
description: "No description",
|
description: "Fill in your description",
|
||||||
welcome_channels: [],
|
welcome_channels: [],
|
||||||
},
|
},
|
||||||
widget_enabled: true, // NB: don't set it as false to prevent artificial restrictions
|
widget_enabled: true, // NB: don't set it as false to prevent artificial restrictions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user