From beee94c9bc3fec6c9d56056d23fe0a455ecd51e2 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Fri, 6 Jan 2023 18:32:11 +0700 Subject: [PATCH] feat(Guild): Add `max_stage_video_channel_users` #8422 djs --- src/structures/Guild.js | 10 ++++++++++ typings/index.d.ts | 1 + 2 files changed, 11 insertions(+) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 79dbda8..65782e1 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -376,6 +376,16 @@ class Guild extends AnonymousGuild { this.maxVideoChannelUsers ??= null; } + if ('max_stage_video_channel_users' in data) { + /** + * The maximum amount of users allowed in a stage video channel. + * @type {?number} + */ + this.maxStageVideoChannelUsers = data.max_stage_video_channel_users; + } else { + this.maxStageVideoChannelUsers ??= null; + } + if ('approximate_member_count' in data) { /** * The approximate amount of members the guild has. diff --git a/typings/index.d.ts b/typings/index.d.ts index a9fdfc0..b1015b6 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1320,6 +1320,7 @@ export class Guild extends AnonymousGuild { public large: boolean; public maximumMembers: number | null; public maximumPresences: number | null; + public maxStageVideoChannelUsers: number | null; public maxVideoChannelUsers: number | null; public readonly me: GuildMember | null; public memberCount: number;