fix(guild): remove maximumPresences default value (#7440)

This commit is contained in:
Almeida
2022-02-12 09:21:48 +00:00
committed by GitHub
parent fbc71ef6b6
commit 55b388a763

View File

@@ -285,11 +285,11 @@ class Guild extends AnonymousGuild {
if ('max_presences' in data) { if ('max_presences' in data) {
/** /**
* The maximum amount of presences the guild can have * The maximum amount of presences the guild can have (this is `null` for all but the largest of guilds)
* <info>You will need to fetch the guild using {@link Guild#fetch} if you want to receive this parameter</info> * <info>You will need to fetch the guild using {@link Guild#fetch} if you want to receive this parameter</info>
* @type {?number} * @type {?number}
*/ */
this.maximumPresences = data.max_presences ?? 25_000; this.maximumPresences = data.max_presences;
} else { } else {
this.maximumPresences ??= null; this.maximumPresences ??= null;
} }