From 27d0659a45c44f0c5986688d16f28e75e99abcc1 Mon Sep 17 00:00:00 2001 From: ducktrshessami Date: Fri, 24 May 2024 04:06:27 -0700 Subject: [PATCH] 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> --- packages/discord.js/src/structures/ThreadChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discord.js/src/structures/ThreadChannel.js b/packages/discord.js/src/structures/ThreadChannel.js index a2c7aa661f4f..68c2f26f6fa4 100644 --- a/packages/discord.js/src/structures/ThreadChannel.js +++ b/packages/discord.js/src/structures/ThreadChannel.js @@ -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; }