From 42f75383200b3c23d5fab65697640e0d1e6022b4 Mon Sep 17 00:00:00 2001 From: Rain Date: Thu, 12 Feb 2026 00:12:58 +0800 Subject: [PATCH] fix(discord): default standalone threads to public type (#14147) When creating a Discord thread without a messageId, the API defaults to type 12 (private thread) which is unexpected. This adds an explicit type: PublicThread (11) for standalone thread creation in non-forum channels, matching user expectations. Closes #14147 --- src/discord/send.messages.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/discord/send.messages.ts b/src/discord/send.messages.ts index bd8bcf2bb15..1d776f5726a 100644 --- a/src/discord/send.messages.ts +++ b/src/discord/send.messages.ts @@ -122,6 +122,12 @@ export async function createThreadDiscord( const starterContent = payload.content?.trim() ? payload.content : payload.name; body.message = { content: starterContent }; } + // When creating a standalone thread (no messageId) in a non-forum channel, + // default to public thread (type 11). Discord defaults to private (type 12) + // which is unexpected for most users. (#14147) + if (!payload.messageId && !isForumLike && body.type === undefined) { + body.type = ChannelType.PublicThread; + } const route = payload.messageId ? Routes.threads(channelId, payload.messageId) : Routes.threads(channelId);