Skip to content

Commit

Permalink
feat(Guild): Add max_video_channel_users (v13) (#8424)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Aug 8, 2022
1 parent 7321507 commit ae43bca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/structures/Guild.js
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions typings/index.d.ts
Expand Up @@ -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;
Expand Down

0 comments on commit ae43bca

Please sign in to comment.