From 55b388a763dc7223e88b62ae928fe85fe8b8fe58 Mon Sep 17 00:00:00 2001 From: Almeida Date: Sat, 12 Feb 2022 09:21:48 +0000 Subject: [PATCH] fix(guild): remove `maximumPresences` default value (#7440) --- packages/discord.js/src/structures/Guild.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/discord.js/src/structures/Guild.js b/packages/discord.js/src/structures/Guild.js index 77c9a6bc0..3772f6b4b 100644 --- a/packages/discord.js/src/structures/Guild.js +++ b/packages/discord.js/src/structures/Guild.js @@ -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) * You will need to fetch the guild using {@link Guild#fetch} if you want to receive this parameter * @type {?number} */ - this.maximumPresences = data.max_presences ?? 25_000; + this.maximumPresences = data.max_presences; } else { this.maximumPresences ??= null; }