From cdd2ba036ab1559783eb067786c52aff61807557 Mon Sep 17 00:00:00 2001 From: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com> Date: Sat, 4 Jun 2022 03:02:21 -0400 Subject: [PATCH] feat(guildChannelManager): add `videoQualityMode` option for `create()` (#7980) Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: Vlad Frangu --- packages/discord.js/src/managers/CategoryChannelChildManager.js | 1 + packages/discord.js/src/managers/GuildChannelManager.js | 2 ++ packages/discord.js/typings/index.d.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/packages/discord.js/src/managers/CategoryChannelChildManager.js b/packages/discord.js/src/managers/CategoryChannelChildManager.js index 028025184..e84c0ec47 100644 --- a/packages/discord.js/src/managers/CategoryChannelChildManager.js +++ b/packages/discord.js/src/managers/CategoryChannelChildManager.js @@ -48,6 +48,7 @@ class CategoryChannelChildManager extends DataManager { * @property {number} [position] Position of the new channel * @property {number} [rateLimitPerUser] The rate limit per user (slowmode) for the new channel in seconds * @property {string} [rtcRegion] The specific region of the new channel. + * @property {VideoQualityMode} [videoQualityMode] The camera video quality mode of the voice channel * @property {string} [reason] Reason for creating the new channel */ diff --git a/packages/discord.js/src/managers/GuildChannelManager.js b/packages/discord.js/src/managers/GuildChannelManager.js index 4ab5727d8..4e2465e2f 100644 --- a/packages/discord.js/src/managers/GuildChannelManager.js +++ b/packages/discord.js/src/managers/GuildChannelManager.js @@ -137,6 +137,7 @@ class GuildChannelManager extends CachedManager { position, rateLimitPerUser, rtcRegion, + videoQualityMode, reason, } = {}, ) { @@ -156,6 +157,7 @@ class GuildChannelManager extends CachedManager { permission_overwrites: permissionOverwrites, rate_limit_per_user: rateLimitPerUser, rtc_region: rtcRegion, + video_quality_mode: videoQualityMode, }, reason, }); diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index e7dc33134..b2161e6ae 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -3736,6 +3736,7 @@ export interface CategoryCreateChannelOptions { rateLimitPerUser?: number; position?: number; rtcRegion?: string; + videoQualityMode?: VideoQualityMode; reason?: string; }