MCPcopy Create free account
hub / github.com/Botloader/botloader / createForumThread

Function createForumThread

components/runtime/src/ts/discord/dapi.ts:984–999  ·  view source on GitHub ↗
(create: ICreateForumThread)

Source from the content-addressed store, hash-verified

982}
983
984export async function createForumThread(create: ICreateForumThread): Promise<{ thread: Thread; message: Message; }> {
985 const opArg = {
986 ...create,
987 message: toOpMessageFields(create.message),
988 }
989
990 const thread = await OpWrappers.callAsyncOp({
991 kind: "discord_start_forum_thread",
992 arg: opArg,
993 })
994
995 return {
996 thread: threadChannelFromInternal(thread.channel),
997 message: new Message(thread.message)
998 }
999}
1000
1001export interface IEditThread {
1002 /**

Callers 1

createForumThreadMethod · 0.90

Calls 2

toOpMessageFieldsFunction · 0.85

Tested by

no test coverage detected