mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(GuildChannel): clone errors when options.name isn't provided (#5804)
This commit is contained in:
@@ -582,8 +582,7 @@ class GuildChannel extends Channel {
|
||||
* @returns {Promise<GuildChannel>}
|
||||
*/
|
||||
clone(options = {}) {
|
||||
return this.guild.channels.create(options.name, {
|
||||
name: this.name,
|
||||
return this.guild.channels.create(options.name ?? this.name, {
|
||||
permissionOverwrites: this.permissionOverwrites,
|
||||
topic: this.topic,
|
||||
type: this.type,
|
||||
|
||||
Reference in New Issue
Block a user