From 7cf216fabf9d0fa5a93d577b32ec08ebad946e28 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Mon, 1 Aug 2022 12:33:34 +0700 Subject: [PATCH] fix(GuildChannelManager): allow unsetting rtcRegion (v13) #8362 v13.9.2 --- src/managers/GuildChannelManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/GuildChannelManager.js b/src/managers/GuildChannelManager.js index 02b3601..0558187 100644 --- a/src/managers/GuildChannelManager.js +++ b/src/managers/GuildChannelManager.js @@ -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,