summary refs log tree commit diff
path: root/util/src/entities/Guild.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-21 17:35:04 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-21 17:35:04 +1000
commit60c8f3e6b2e7fc3b802d51222b4b0f5ae61ddd8c (patch)
tree748c4722dcd29ffb034de6ace75c861cf585bbfc /util/src/entities/Guild.ts
parentadd more default rights (diff)
downloadserver-60c8f3e6b2e7fc3b802d51222b4b0f5ae61ddd8c.tar.xz
fosscord-server/pulls/858
Diffstat (limited to '')
-rw-r--r--util/src/entities/Guild.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/src/entities/Guild.ts b/util/src/entities/Guild.ts

index a5b732e8..143cb542 100644 --- a/util/src/entities/Guild.ts +++ b/util/src/entities/Guild.ts
@@ -267,8 +267,8 @@ export class Guild extends BaseClass { @Column({ nullable: true }) nsfw_level?: number; - @Column({ nullable: true }) - nsfw?: boolean; + @Column() + nsfw: boolean; // TODO: nested guilds @Column({ nullable: true }) @@ -335,7 +335,7 @@ export class Guild extends BaseClass { unicode_emoji: null }).save(); - if (!body.channels || !body.channels.length) body.channels = [{ id: "01", type: 0, name: "general" }]; + if (!body.channels || !body.channels.length) body.channels = [{ id: "01", type: 0, name: "general", nsfw: false }]; const ids = new Map();