Skip to content

Commit

Permalink
fix(ThreadChannel): invalid owner fetch option (#10292)
Browse files Browse the repository at this point in the history
fix(ThreadChannel): invalid owner fetch options

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
ducktrshessami and kodiakhq[bot] authored May 24, 2024
1 parent a35d760 commit 27d0659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/ThreadChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class ThreadChannel extends BaseChannel {
}

// TODO: Remove that catch in the next major version
const member = await this.members._fetchSingle({ ...options, user: this.ownerId }).catch(error => {
const member = await this.members._fetchSingle({ ...options, member: this.ownerId }).catch(error => {
if (error instanceof DiscordAPIError && error.code === RESTJSONErrorCodes.UnknownMember) {
return null;
}
Expand Down

0 comments on commit 27d0659

Please sign in to comment.