summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-21 14:55:23 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-21 14:55:23 +1100
commit77bc92f6f27ae1439f7dbeb804b4266905e50ebe (patch)
tree862df81ca980df2cbabc6ff67095fe94db2dfbdd
parentSet default threads to 1. Multiple threads is broken without Rabbitmq (diff)
downloadserver-77bc92f6f27ae1439f7dbeb804b4266905e50ebe.tar.xz
Fix guild features being undefined if not using defaultFeatures
-rw-r--r--src/util/entities/Guild.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/entities/Guild.ts b/src/util/entities/Guild.ts
index b1471f16..676d851f 100644
--- a/src/util/entities/Guild.ts
+++ b/src/util/entities/Guild.ts
@@ -306,7 +306,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: Config.get().guild.defaultFeatures,
+			features: Config.get().guild.defaultFeatures || [],
 			primary_category_id: undefined,
 			id: guild_id,
 			max_members: 250000,