mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat(GuildChannel#clone): support for position property (#5236)
This commit is contained in:
@@ -531,6 +531,7 @@ class GuildChannel extends Channel {
|
||||
* @param {number} [options.bitrate=this.bitrate] Bitrate of the new channel in bits (only voice)
|
||||
* @param {number} [options.userLimit=this.userLimit] Maximum amount of users allowed in the new channel (only voice)
|
||||
* @param {number} [options.rateLimitPerUser=this.rateLimitPerUser] Ratelimit per user for the new channel (only text)
|
||||
* @param {number} [options.position=this.position] Position of the new channel
|
||||
* @param {ChannelResolvable} [options.parent=this.parent] Parent of the new channel
|
||||
* @param {string} [options.reason] Reason for cloning this channel
|
||||
* @returns {Promise<GuildChannel>}
|
||||
@@ -547,6 +548,7 @@ class GuildChannel extends Channel {
|
||||
bitrate: this.bitrate,
|
||||
userLimit: this.userLimit,
|
||||
rateLimitPerUser: this.rateLimitPerUser,
|
||||
position: this.position,
|
||||
reason: null,
|
||||
},
|
||||
options,
|
||||
|
||||
Reference in New Issue
Block a user