ThreadsAPI

export declare class ThreadsAPI
export declare class ThreadsAPI

No summary provided.

constructor(rest)
Constructs a new instance of the ThreadsAPI class
NameTypeOptionalDescription
restRESTNoNone
addMember(threadId, userId):Promise<void>
NameTypeOptionalDescription
threadIdSnowflakeNoThe id of the thread to add the member to
userIdSnowflakeNoThe id of the user to add to the thread
create(channelId, data):Promise<APIChannel>
NameTypeOptionalDescription
channelIdSnowflakeNoThe id of the channel to start the thread in
dataStartThreadOptionsNoThe data to use when starting the thread
createForumThread(channelId, data):Promise<APIThreadChannel>
NameTypeOptionalDescription
channelIdSnowflakeNoThe id of the forum channel to start the thread in
dataStartForumThreadOptionsNoThe data to use when starting the thread
get(threadId):Promise<APIThreadChannel>
NameTypeOptionalDescription
threadIdSnowflakeNoThe id of the thread
NameTypeOptionalDescription
threadIdSnowflakeNoThe id of the thread to fetch the members from
getMember(threadId, userId):Promise<APIThreadMember>
NameTypeOptionalDescription
threadIdSnowflakeNoThe id of the thread to fetch the member from
userIdSnowflakeNoThe id of the user
join(threadId):Promise<void>
NameTypeOptionalDescription
threadIdSnowflakeNoThe id of the thread to join
leave(threadId):Promise<void>
Removes the current user from a thread
NameTypeOptionalDescription
threadIdSnowflakeNoThe id of the thread to leave
removeMember(threadId, userId):Promise<void>
NameTypeOptionalDescription
threadIdSnowflakeNoThe id of the thread to remove the member from
userIdSnowflakeNoThe id of the user to remove from the thread