diff --git a/src/discord/send.creates-thread.test.ts b/src/discord/send.creates-thread.test.ts index 3b332c06bc4..3d89b507a7e 100644 --- a/src/discord/send.creates-thread.test.ts +++ b/src/discord/send.creates-thread.test.ts @@ -114,7 +114,9 @@ describe("sendMessageDiscord", () => { await createThreadDiscord("chan1", { name: "thread" }, { rest, token: "t" }); expect(postMock).toHaveBeenCalledWith( Routes.threads("chan1"), - expect.objectContaining({ body: { name: "thread" } }), + expect.objectContaining({ + body: expect.objectContaining({ name: "thread", type: ChannelType.PublicThread }), + }), ); }); diff --git a/src/discord/send.types.ts b/src/discord/send.types.ts index 5a171a75669..318a03002e8 100644 --- a/src/discord/send.types.ts +++ b/src/discord/send.types.ts @@ -72,6 +72,8 @@ export type DiscordThreadCreate = { name: string; autoArchiveMinutes?: number; content?: string; + /** Discord thread type (default: PublicThread for standalone threads). */ + type?: number; }; export type DiscordThreadList = {