From 77bc92f6f27ae1439f7dbeb804b4266905e50ebe Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Wed, 21 Dec 2022 14:55:23 +1100 Subject: [PATCH] Fix guild features being undefined if not using defaultFeatures --- src/util/entities/Guild.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,