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,