feat(Guild): Add max_stage_video_channel_users

#8422 djs
This commit is contained in:
March 7th 2023-01-06 18:32:11 +07:00
parent aa04fd7311
commit beee94c9bc
2 changed files with 11 additions and 0 deletions

View File

@ -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.

1
typings/index.d.ts vendored
View File

@ -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;