From 0d3b65430da4898c13cc5a2a4f2791689324e66b Mon Sep 17 00:00:00 2001 From: ducktrshessami Date: Mon, 20 May 2024 11:00:12 -0700 Subject: [PATCH] fix(ThreadChannel): invalid owner fetch options --- 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; }