feat(Guild): Add max_video_channel_users (#8423)

This commit is contained in:
Jiralite
2022-08-08 10:05:40 +01:00
committed by GitHub
parent 359f688555
commit 3a96ce7970
2 changed files with 11 additions and 0 deletions

View File

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

View File

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