Skip to content

Commit 27d0659

Browse files
fix(ThreadChannel): invalid owner fetch option (#10292)
fix(ThreadChannel): invalid owner fetch options Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent a35d760 commit 27d0659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/discord.js/src/structures/ThreadChannel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ class ThreadChannel extends BaseChannel {
300300
}
301301

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

0 commit comments

Comments
 (0)