Skip to content

Commit

Permalink
feat(Guild): Add max_stage_video_channel_users (#8422)
Browse files Browse the repository at this point in the history
feat(Guild): add `max_stage_video_channel_users`
  • Loading branch information
Jiralite committed Mar 31, 2023
1 parent db8df10 commit 34bc36a
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 @@ -307,6 +307,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 @@ -1305,6 +1305,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 34bc36a

Please sign in to comment.