mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
docs(GuildChannel): fix doc string for clone method
This commit is contained in:
@@ -464,7 +464,6 @@ class GuildChannel extends Channel {
|
|||||||
* @param {string} [options.reason] Reason for cloning this channel
|
* @param {string} [options.reason] Reason for cloning this channel
|
||||||
* @returns {Promise<GuildChannel>}
|
* @returns {Promise<GuildChannel>}
|
||||||
*/
|
*/
|
||||||
/* eslint-enable max-len */
|
|
||||||
clone(options = {}) {
|
clone(options = {}) {
|
||||||
Util.mergeDefault({
|
Util.mergeDefault({
|
||||||
name: this.name,
|
name: this.name,
|
||||||
@@ -480,6 +479,7 @@ class GuildChannel extends Channel {
|
|||||||
}, options);
|
}, options);
|
||||||
return this.guild.channels.create(options.name, options);
|
return this.guild.channels.create(options.name, options);
|
||||||
}
|
}
|
||||||
|
/* eslint-enable max-len */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if this channel has the same type, topic, position, name, overwrites and ID as another channel.
|
* Checks if this channel has the same type, topic, position, name, overwrites and ID as another channel.
|
||||||
|
|||||||
Reference in New Issue
Block a user