mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fix(GuildChannel): regression on default channel type (#5251)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user