Skip to content

Commit

Permalink
fix(GuildChannelManager): allow unsetting rtcRegion (#8359)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceEEC committed Jul 26, 2022
1 parent 34ba9d1 commit a7d49e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/managers/GuildChannelManager.js
Expand Up @@ -267,7 +267,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: data.videoQualityMode,
parent_id: parent,
lock_permissions: data.lockPermissions,
Expand Down

1 comment on commit a7d49e5

@vercel
Copy link

@vercel vercel bot commented on a7d49e5 Jul 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.