mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
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:
@@ -48,6 +48,7 @@ class CategoryChannelChildManager extends DataManager {
|
|||||||
* @property {number} [position] Position of the new channel
|
* @property {number} [position] Position of the new channel
|
||||||
* @property {number} [rateLimitPerUser] The rate limit per user (slowmode) for the new channel in seconds
|
* @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 {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
|
* @property {string} [reason] Reason for creating the new channel
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -137,6 +137,7 @@ class GuildChannelManager extends CachedManager {
|
|||||||
position,
|
position,
|
||||||
rateLimitPerUser,
|
rateLimitPerUser,
|
||||||
rtcRegion,
|
rtcRegion,
|
||||||
|
videoQualityMode,
|
||||||
reason,
|
reason,
|
||||||
} = {},
|
} = {},
|
||||||
) {
|
) {
|
||||||
@@ -156,6 +157,7 @@ class GuildChannelManager extends CachedManager {
|
|||||||
permission_overwrites: permissionOverwrites,
|
permission_overwrites: permissionOverwrites,
|
||||||
rate_limit_per_user: rateLimitPerUser,
|
rate_limit_per_user: rateLimitPerUser,
|
||||||
rtc_region: rtcRegion,
|
rtc_region: rtcRegion,
|
||||||
|
video_quality_mode: videoQualityMode,
|
||||||
},
|
},
|
||||||
reason,
|
reason,
|
||||||
});
|
});
|
||||||
|
|||||||
1
packages/discord.js/typings/index.d.ts
vendored
1
packages/discord.js/typings/index.d.ts
vendored
@@ -3736,6 +3736,7 @@ export interface CategoryCreateChannelOptions {
|
|||||||
rateLimitPerUser?: number;
|
rateLimitPerUser?: number;
|
||||||
position?: number;
|
position?: number;
|
||||||
rtcRegion?: string;
|
rtcRegion?: string;
|
||||||
|
videoQualityMode?: VideoQualityMode;
|
||||||
reason?: string;
|
reason?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user