fix(thread): get() route (#8897)

Co-authored-by: Aura Román <kyradiscord@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Almeida
2022-12-07 14:27:01 +00:00
committed by GitHub
parent 3f555d5ddf
commit 3dede75621

View File

@@ -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>;
}
/**