fix(GuildChannelManager): allow unsetting rtcRegion (v13)

#8362 v13.9.2
This commit is contained in:
March 7th 2022-08-01 12:33:34 +07:00
parent 8946f9ab35
commit 7cf216fabf

View File

@ -274,7 +274,7 @@ class GuildChannelManager extends CachedManager {
nsfw: data.nsfw,
bitrate: data.bitrate ?? channel.bitrate,
user_limit: data.userLimit ?? channel.userLimit,
rtc_region: data.rtcRegion ?? channel.rtcRegion,
rtc_region: 'rtcRegion' in data ? data.rtcRegion : channel.rtcRegion,
video_quality_mode:
typeof data.videoQualityMode === 'string' ? VideoQualityModes[data.videoQualityMode] : data.videoQualityMode,
parent_id: parent,