From 3c9115730caa24ddc22ccbba07a635906d067ea7 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Thu, 19 Jan 2023 18:16:41 +0700 Subject: [PATCH] Update GuildBoost.js --- src/structures/GuildBoost.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/GuildBoost.js b/src/structures/GuildBoost.js index e656cf8..6ec1a73 100644 --- a/src/structures/GuildBoost.js +++ b/src/structures/GuildBoost.js @@ -27,7 +27,7 @@ class GuildBoost extends Base { */ this.subscriptionId = data.subscription_id; } - if (typeof data.premium_guild_subscription === 'object') { + if (typeof data.premium_guild_subscription === 'object' && data.premium_guild_subscription !== null) { /** * The premium guild subscription id * @type {?Snowflake}