fix(ThreadChannel): reason as second parameter

#9023 djs
This commit is contained in:
March 7th 2023-01-08 14:35:37 +07:00
parent 57d4628d2b
commit eaf8167ce4

View File

@ -459,7 +459,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);
}
/**
@ -468,7 +468,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);
}
/**
@ -478,7 +478,7 @@ class ThreadChannel extends Channel {
* @returns {Promise<GuildForumThreadChannel>}
*/
setAppliedTags(appliedTags, reason) {
return this.edit({ appliedTags, reason });
return this.edit({ appliedTags }, reason);
}
/**