@textile/hub > Users > getThread
Users.getThread() method
Gets a users existing thread by name.
Signature:
getThread(name: string): Promise<GetThreadResponse>;
Parameters
Parameter | Type | Description |
---|---|---|
name | string |
Returns:
Promise<GetThreadResponse>
Example
import { Users } from "@textile/hub"
async function example(users: Users) {
const thread = await users.getThread('thread-name')
return thread
}