Skip to content

Commit

Permalink
fix(thread): get() route (#8897)
Browse files Browse the repository at this point in the history
Co-authored-by: Aura Román <kyradiscord@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 7, 2022
1 parent 3f555d5 commit 3dede75
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core/src/api/thread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<APIThreadChannel>;
public async get(threadId: Snowflake) {
return this.rest.get(Routes.channel(threadId)) as Promise<APIThreadChannel>;
}

/**
Expand Down

0 comments on commit 3dede75

Please sign in to comment.