fix(discord): support forum channel thread-create (#10062)

* fix(discord): support forum channel thread-create

* fix: harden discord forum thread-create (#10062) (thanks @jarvis89757)

---------

Co-authored-by: Shakker <shakkerdroid@gmail.com>
This commit is contained in:
jarvis89757
2026-02-08 16:51:10 +11:00
committed by GitHub
parent bc475f0172
commit 9949f82590
10 changed files with 136 additions and 8 deletions

View File

@@ -184,6 +184,7 @@ export async function handleDiscordMessageAction(
if (action === "thread-create") {
const name = readStringParam(params, "threadName", { required: true });
const messageId = readStringParam(params, "messageId");
const content = readStringParam(params, "message");
const autoArchiveMinutes = readNumberParam(params, "autoArchiveMin", {
integer: true,
});
@@ -194,6 +195,7 @@ export async function handleDiscordMessageAction(
channelId: resolveChannelId(),
name,
messageId,
content,
autoArchiveMinutes,
},
cfg,