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

See also: https://discord.com/developers/docs/resources/channel#add-thread-member

join(
threadId: Snowflake
) : Promise<void>

Adds the current user to a thread

See also: https://discord.com/developers/docs/resources/channel#join-thread

leave(
threadId: Snowflake
) : Promise<void>

Removes the current user from a thread

See also: https://discord.com/developers/docs/resources/channel#leave-thread

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

Removes a member from a thread

See also: https://discord.com/developers/docs/resources/channel#remove-thread-member