mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +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({
|
const newData = await this.client.api.channels(this.id).patch({
|
||||||
data: {
|
data: {
|
||||||
name: (data.name || this.name).trim(),
|
name: (data.name || this.name).trim(),
|
||||||
type: data.type ? ChannelTypes[data.type.toUpperCase()] : this.type,
|
type: ChannelTypes[data.type?.toUpperCase()],
|
||||||
topic: data.topic,
|
topic: data.topic,
|
||||||
nsfw: data.nsfw,
|
nsfw: data.nsfw,
|
||||||
bitrate: data.bitrate || this.bitrate,
|
bitrate: data.bitrate || this.bitrate,
|
||||||
|
|||||||
Reference in New Issue
Block a user