mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user