From 3dede75621993428216196c60658e0c482aa9f61 Mon Sep 17 00:00:00 2001 From: Almeida Date: Wed, 7 Dec 2022 14:27:01 +0000 Subject: [PATCH] fix(thread): `get()` route (#8897) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Aura Román Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/core/src/api/thread.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/core/src/api/thread.ts b/packages/core/src/api/thread.ts index 94f08f1a5..0ea789bae 100644 --- a/packages/core/src/api/thread.ts +++ b/packages/core/src/api/thread.ts @@ -24,11 +24,10 @@ export class ThreadsAPI { /** * Fetches a thread * - * @param channelId - The id of the channel to fetch the thread from * @param threadId - The id of the thread */ - public async get(channelId: Snowflake, threadId: Snowflake) { - return this.rest.get(Routes.threads(channelId, threadId)) as Promise; + public async get(threadId: Snowflake) { + return this.rest.get(Routes.channel(threadId)) as Promise; } /**