Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(editChannel): fix videoQualityMode & add permissionOverwrites #1319

Merged
merged 5 commits into from
Jun 8, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,7 @@ class Client extends EventEmitter {
* @arg {String} [options.topic] The topic of the channel (guild text channels only)
* @arg {Number} [options.userLimit] The channel user limit (guild voice channels only)
* @arg {Number} [options.videoQualityMode] The camera video quality mode of the channel (guild voice channels only). `1` is auto, `2` is 720p
* @arg {Array} [options.permissionOverwrites] An array containing permission overwrite objects
* @arg {String} [reason] The reason to be displayed in audit logs
* @returns {Promise<CategoryChannel | GroupChannel | TextChannel | VoiceChannel | NewsChannel | NewsThreadChannel | PrivateThreadChannel | PublicThreadChannel>}
*/
Expand All @@ -1262,7 +1263,8 @@ class Client extends EventEmitter {
rtc_region: options.rtcRegion,
topic: options.topic,
user_limit: options.userLimit,
voice_quality_mode: options.voiceQualityMode,
video_quality_mode: options.videoQualityMode,
permission_overwrites: options.permissionOverwrites,
reason: reason
}).then((channel) => Channel.from(channel, this));
}
Expand Down