Skip to content

Commit

Permalink
fix(ThreadChannel): reason as second parameter (#9023)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Jan 10, 2023
1 parent 6854df4 commit a941cb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/structures/ThreadChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ class ThreadChannel extends Channel {
* @returns {Promise<ThreadChannel>}
*/
pin(reason) {
return this.edit({ flags: this.flags.add(ChannelFlags.FLAGS.PINNED), reason });
return this.edit({ flags: this.flags.add(ChannelFlags.FLAGS.PINNED) }, reason);
}

/**
Expand All @@ -461,7 +461,7 @@ class ThreadChannel extends Channel {
* @returns {Promise<ThreadChannel>}
*/
unpin(reason) {
return this.edit({ flags: this.flags.remove(ChannelFlags.FLAGS.PINNED), reason });
return this.edit({ flags: this.flags.remove(ChannelFlags.FLAGS.PINNED) }, reason);
}

/**
Expand All @@ -471,7 +471,7 @@ class ThreadChannel extends Channel {
* @returns {Promise<GuildForumThreadChannel>}
*/
setAppliedTags(appliedTags, reason) {
return this.edit({ appliedTags, reason });
return this.edit({ appliedTags }, reason);
}

/**
Expand Down

0 comments on commit a941cb6

Please sign in to comment.