Skip to content

Commit

Permalink
feat(Guild): Add max_video_channel_users (#8423)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Aug 8, 2022
1 parent 359f688 commit 3a96ce7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/discord.js/src/structures/Guild.js
Expand Up @@ -287,6 +287,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
Expand Down
1 change: 1 addition & 0 deletions packages/discord.js/typings/index.d.ts
Expand Up @@ -1083,6 +1083,7 @@ export class Guild extends AnonymousGuild {
public afkChannelId: Snowflake | null;
public afkTimeout: number;
public applicationId: Snowflake | null;
public maxVideoChannelUsers: number | null;
public approximateMemberCount: number | null;
public approximatePresenceCount: number | null;
public available: boolean;
Expand Down

1 comment on commit 3a96ce7

@vercel
Copy link

@vercel vercel bot commented on 3a96ce7 Aug 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.