Skip to content

Commit

Permalink
fix(GuildChannel): regression on default channel type (#5251)
Browse files Browse the repository at this point in the history
  • Loading branch information
almostSouji committed Mar 28, 2021
1 parent 1c8b109 commit e7c4f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/GuildChannel.js
Expand Up @@ -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,
Expand Down

0 comments on commit e7c4f36

Please sign in to comment.