class ThreadsAPI

declare class ThreadsAPI

Constructors

constructor(
rest: REST
)

Constructs a new instance of the ThreadsAPI class

addMember(
threadId: Snowflake
userId: Snowflake
) : Promise<void>

Adds a member to a thread

Creates a new thread

createForumThread() : Promise<APIThreadChannel>

Creates a new forum post

get(
channelId: Snowflake
threadId: Snowflake
) : Promise<APIThreadChannel>

Fetches a thread

Fetches all members of a thread

getMember(
threadId: Snowflake
userId: Snowflake
) : Promise<APIThreadMember>

Fetches a member of a thread

join(
threadId: Snowflake
) : Promise<void>

Adds the current user to a thread

leave(
threadId: Snowflake
) : Promise<void>

Removes the current user from a thread

removeMember(
threadId: Snowflake
userId: Snowflake
) : Promise<void>

Removes a member from a thread