Skip to content

Commit

Permalink
feat(GuildChannel#clone): support for position property (#5236)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishmaam Khan committed May 10, 2021
1 parent 6d09160 commit d455cb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/structures/GuildChannel.js
Expand Up @@ -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>}
Expand All @@ -547,6 +548,7 @@ class GuildChannel extends Channel {
bitrate: this.bitrate,
userLimit: this.userLimit,
rateLimitPerUser: this.rateLimitPerUser,
position: this.position,
reason: null,
},
options,
Expand Down

0 comments on commit d455cb6

Please sign in to comment.