diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index 2a2f91248237..f0e9da97faf3 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -357,7 +357,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,