summary refs log tree commit diff
path: root/src/util/entities
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-03-24 21:21:21 -0400
committerPuyodead1 <puyodead@proton.me>2023-04-13 15:28:41 -0400
commitc2ce88dee726bb6c1993bf4615aa866d089ca494 (patch)
treef5b3fe7d7d1e23b5f2ce6540c7e78d34b4c1e43f /src/util/entities
parentUpdate openapi.json (diff)
downloadserver-c2ce88dee726bb6c1993bf4615aa866d089ca494.tar.xz
guilds
Diffstat (limited to 'src/util/entities')
-rw-r--r--src/util/entities/Guild.ts13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/util/entities/Guild.ts b/src/util/entities/Guild.ts
index e8454986..7d7ae1ea 100644
--- a/src/util/entities/Guild.ts
+++ b/src/util/entities/Guild.ts
@@ -24,7 +24,7 @@ import {
 	OneToMany,
 	RelationId,
 } from "typeorm";
-import { Config, handleFile, Snowflake } from "..";
+import { Config, GuildWelcomeScreen, handleFile, Snowflake } from "..";
 import { Ban } from "./Ban";
 import { BaseClass } from "./BaseClass";
 import { Channel } from "./Channel";
@@ -270,16 +270,7 @@ export class Guild extends BaseClass {
 	verification_level?: number;
 
 	@Column({ type: "simple-json" })
-	welcome_screen: {
-		enabled: boolean;
-		description: string;
-		welcome_channels: {
-			description: string;
-			emoji_id?: string;
-			emoji_name?: string;
-			channel_id: string;
-		}[];
-	};
+	welcome_screen: GuildWelcomeScreen;
 
 	@Column({ nullable: true })
 	@RelationId((guild: Guild) => guild.widget_channel)