From bf73ac4b3c4f27c2f7750c0adaf5478009513e62 Mon Sep 17 00:00:00 2001 From: hocsinhgioitoan <89916615+hocsinhgioitoan@users.noreply.github.com> Date: Mon, 8 Aug 2022 22:08:24 +0700 Subject: [PATCH] feat(Guild): Add `max_video_channel_users` --- 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 caa4bab..4537bb7 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -362,6 +362,16 @@ class Guild extends AnonymousGuild { this.maximumPresences ??= null; } + if ('max_video_channel_users' in data) { + /** + * The maximum amount of users allowed in a video channel. + * @type {?number} + */ + this.maxVideoChannelUsers = data.max_video_channel_users; + } else { + this.maxVideoChannelUsers ??= 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 045d45b..07e462c 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1203,6 +1203,7 @@ export class Guild extends AnonymousGuild { public large: boolean; public maximumMembers: number | null; public maximumPresences: number | null; + public maxVideoChannelUsers: number | null; public readonly me: GuildMember | null; public memberCount: number; public members: GuildMemberManager;