feat: Add premiumSubscriptionCount to InviteGuild (#7629)

This commit is contained in:
Jiralite
2022-04-09 10:34:24 +01:00
committed by GitHub
parent b9c5676006
commit 8e7d15e49d
3 changed files with 11 additions and 9 deletions

View File

@@ -64,6 +64,16 @@ class AnonymousGuild extends BaseGuild {
*/
this.nsfwLevel = NSFWLevels[data.nsfw_level];
}
if ('premium_subscription_count' in data) {
/**
* The total number of boosts for this server
* @type {?number}
*/
this.premiumSubscriptionCount = data.premium_subscription_count;
} else {
this.premiumSubscriptionCount ??= null;
}
}
/**