Skip to content

Commit

Permalink
fix(structs): fix incorrect thread method references (#1301)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZixeSea authored Nov 16, 2021
1 parent 0bc76c9 commit 87473ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/structures/Guild.js
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ class Guild extends Base {
* @returns {Promise<Object>} An object containing an array of `threads` and an array of `members`
*/
getActiveThreads() {
return this.client.getActiveThreads.call(this.client, this.id);
return this._client.getActiveGuildThreads.call(this._client, this.id);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ class Message extends Base {
* @returns {Promise<NewsThreadChannel | PublicThreadChannel>}
*/
createThreadWithMessage(options) {
return this.client.createThreadWithMessage.call(this.client, this.channel.id, this.id, options);
return this._client.createThreadWithMessage.call(this._client, this.channel.id, this.id, options);
}

/**
Expand Down

0 comments on commit 87473ba

Please sign in to comment.