1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 10:22:39 +01:00

Fix guild features being undefined if not using defaultFeatures

This commit is contained in:
Madeline 2022-12-21 14:55:23 +11:00
parent 99a3c65588
commit 77bc92f6f2
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -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,