feat(guildChannelManager): add videoQualityMode option for create() (#7980)

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
This commit is contained in:
Suneet Tipirneni
2022-06-04 03:02:21 -04:00
committed by GitHub
parent 97eaab35d7
commit cdd2ba036a
3 changed files with 4 additions and 0 deletions

View File

@@ -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
*/

View File

@@ -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,
});

View File

@@ -3736,6 +3736,7 @@ export interface CategoryCreateChannelOptions {
rateLimitPerUser?: number;
position?: number;
rtcRegion?: string;
videoQualityMode?: VideoQualityMode;
reason?: string;
}