feat(Guild): Add max_video_channel_users (v13) (#8424)

This commit is contained in:
Jiralite
2022-08-08 10:05:46 +01:00
committed by GitHub
parent 7321507559
commit ae43bca8b0
2 changed files with 11 additions and 0 deletions

View File

@@ -363,6 +363,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

1
typings/index.d.ts vendored
View File

@@ -939,6 +939,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;