From e7c4f3672e7059c264ba67a94b87a655ea6e4da5 Mon Sep 17 00:00:00 2001 From: Souji Date: Sun, 28 Mar 2021 15:24:41 +0200 Subject: [PATCH] fix(GuildChannel): regression on default channel type (#5251) --- src/structures/GuildChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index 996b8e8c1..e9261d3e1 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -367,7 +367,7 @@ class GuildChannel extends Channel { const newData = await this.client.api.channels(this.id).patch({ data: { name: (data.name || this.name).trim(), - type: data.type ? ChannelTypes[data.type.toUpperCase()] : this.type, + type: ChannelTypes[data.type?.toUpperCase()], topic: data.topic, nsfw: data.nsfw, bitrate: data.bitrate || this.bitrate,