Update GuildBoost.js

This commit is contained in:
Elysia 2023-01-19 18:16:41 +07:00 committed by GitHub
parent 78250d866e
commit 3c9115730c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ class GuildBoost extends Base {
*/ */
this.subscriptionId = data.subscription_id; 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 * The premium guild subscription id
* @type {?Snowflake} * @type {?Snowflake}