summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-18 19:49:03 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-18 19:49:03 +1000
commitc1b096cfd18fa224fa9874dd0eeae9b70a2da555 (patch)
treede4d1dcf5229e0ca564928e5339fa6ceeda019fd
parentDisplay network/api errors on login/register page (diff)
parentDefault features config (diff)
downloadserver-c1b096cfd18fa224fa9874dd0eeae9b70a2da555.tar.xz
Merge branch 'feat/defaultFeatures' into slowcord
-rw-r--r--util/src/entities/Config.ts2
-rw-r--r--util/src/entities/Guild.ts2
2 files changed, 3 insertions, 1 deletions
diff --git a/util/src/entities/Config.ts b/util/src/entities/Config.ts
index 20a43199..84bd367e 100644
--- a/util/src/entities/Config.ts
+++ b/util/src/entities/Config.ts
@@ -171,6 +171,7 @@ export interface ConfigValue {
 			guilds: string[];
 			canLeave: boolean;
 		};
+		defaultFeatures: string[];
 	};
 	gif: {
 		enabled: boolean;
@@ -400,6 +401,7 @@ export const DefaultConfigOptions: ConfigValue = {
 			canLeave: true,
 			guilds: [],
 		},
+		defaultFeatures: [],
 	},
 	gif: {
 		enabled: true,
diff --git a/util/src/entities/Guild.ts b/util/src/entities/Guild.ts
index ef31a237..a5b732e8 100644
--- a/util/src/entities/Guild.ts
+++ b/util/src/entities/Guild.ts
@@ -293,7 +293,7 @@ export class Guild extends BaseClass {
 			afk_timeout: 300,
 			default_message_notifications: 1, // defaults effect: setting the push default at mentions-only will save a lot
 			explicit_content_filter: 0,
-			features: [],
+			features: Config.get().guild.defaultFeatures,
 			primary_category_id: null,
 			id: guild_id,
 			max_members: 250000,