mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
feat(Guild): Add max_stage_video_channel_users (#8422)
feat(Guild): add `max_stage_video_channel_users`
This commit is contained in:
@@ -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
|
||||
|
||||
1
packages/discord.js/typings/index.d.ts
vendored
1
packages/discord.js/typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user