Skip to content

Commit

Permalink
feat(Guild): add max_stage_video_channel_users
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Sep 15, 2022
1 parent 0f83402 commit 506fcc4
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
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,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
Expand Down
1 change: 1 addition & 0 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,7 @@ export class Guild extends AnonymousGuild {
public large: boolean;
public maximumMembers: number | null;
public maximumPresences: number | null;
public maxStageVideoChannelUsers: number | null;
public memberCount: number;
public members: GuildMemberManager;
public mfaLevel: GuildMFALevel;
Expand Down

0 comments on commit 506fcc4

Please sign in to comment.