mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(guild): remove maximumPresences default value (#7440)
This commit is contained in:
@@ -285,11 +285,11 @@ class Guild extends AnonymousGuild {
|
||||
|
||||
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>
|
||||
* @type {?number}
|
||||
*/
|
||||
this.maximumPresences = data.max_presences ?? 25_000;
|
||||
this.maximumPresences = data.max_presences;
|
||||
} else {
|
||||
this.maximumPresences ??= null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user