Skip to content

Commit

Permalink
feat(Guild): add Guild#maxStageVideoChannelUsers (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
TTtie committed Apr 14, 2023
1 parent 92d650c commit a49a58b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3071,6 +3071,7 @@ declare namespace Dysnomia {
large: boolean;
maxMembers: number;
maxPresences?: number | null;
maxStageVideoChannelUsers?: number;
maxVideoChannelUsers?: number;
memberCount: number;
members: Collection<Member>;
Expand Down
4 changes: 4 additions & 0 deletions lib/structures/Guild.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const emitDeprecation = require("../util/emitDeprecation");
* @prop {Boolean} large Whether the guild is "large" by "some Discord standard"
* @prop {Number?} maxMembers The maximum amount of members for the guild
* @prop {Number} maxPresences The maximum number of people that can be online in a guild at once (returned from REST API only)
* @prop {Number?} maxStageVideoChannelUsers The max number of users allowed in a stage video channel
* @prop {Number?} maxVideoChannelUsers The max number of users allowed in a video channel
* @prop {Number} memberCount Number of members in the guild
* @prop {Number} mfaLevel The admin 2FA level for the guild. 0 is not required, 1 is required
Expand Down Expand Up @@ -276,6 +277,9 @@ class Guild extends Base {
if(data.max_video_channel_users !== undefined) {
this.maxVideoChannelUsers = data.max_video_channel_users;
}
if(data.max_stage_video_channel_users !== undefined) {
this.maxStageVideoChannelUsers = data.max_stage_video_channel_users;
}
if(data.welcome_screen !== undefined) {
this.welcomeScreen = {
description: data.welcome_screen.description,
Expand Down

0 comments on commit a49a58b

Please sign in to comment.