summary refs log tree commit diff
path: root/util/src/models/Guild.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-19 21:28:57 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-19 21:28:57 +0200
commit4a7b933ccf763f7cda8478642e7ee397461290d8 (patch)
treecf6f997a40ba2eb0da5a7e76402ec77740a0d14e /util/src/models/Guild.ts
parentadded all unittests for attachments (diff)
downloadserver-4a7b933ccf763f7cda8478642e7ee397461290d8.tar.xz
:bug: fix vanity url
Diffstat (limited to '')
-rw-r--r--util/src/models/Guild.ts36
1 files changed, 17 insertions, 19 deletions
diff --git a/util/src/models/Guild.ts b/util/src/models/Guild.ts
index 13a7d078..a5dcd8e3 100644
--- a/util/src/models/Guild.ts
+++ b/util/src/models/Guild.ts
@@ -32,7 +32,7 @@ export interface Guild {
 	// channels: GuildChannel[]; // * Channels are stored in a seperate collection
 	// emojis: Emoji[];  // * Emojis are stored in a seperate collection
 	// voice_states: []; // * voice_states are stored in a seperate collection
-    //TODO:
+	//TODO:
 	presences?: object[];
 	mfa_level?: number;
 	name: string;
@@ -47,19 +47,17 @@ export interface Guild {
 	system_channel_flags?: number;
 	system_channel_id?: string;
 	unavailable?: boolean;
-	vanity_url?: {
-		code: string;
-		uses: number;
-	};
+	vanity_url_code?: string;
 	verification_level?: number;
 	welcome_screen: {
 		enabled: boolean;
 		description: string;
-		welcome_channels: { 
-		description: string;
-	    emoji_id?: string;
-	    emoji_name: string;
-	    channel_id: string }[];
+		welcome_channels: {
+			description: string;
+			emoji_id?: string;
+			emoji_name: string;
+			channel_id: string;
+		}[];
 	};
 	widget_channel_id?: string;
 	widget_enabled?: boolean;
@@ -97,20 +95,20 @@ export const GuildSchema = new Schema({
 	system_channel_flags: Number,
 	system_channel_id: String,
 	unavailable: Boolean,
-	vanity_url: {
-		code: String,
-		uses: Number
-	},
+	vanity_url_code: String,
 	verification_level: Number,
 	voice_states: { type: [Object], default: [] },
 	welcome_screen: {
 		enabled: Boolean,
 		description: String,
-		welcome_channels: [{ 
-		description: String,
-	    emoji_id: String,
-	    emoji_name: String,
-	    channel_id: String }],
+		welcome_channels: [
+			{
+				description: String,
+				emoji_id: String,
+				emoji_name: String,
+				channel_id: String,
+			},
+		],
 	},
 	widget_channel_id: String,
 	widget_enabled: Boolean,