fix(discord): support applied_tags parameter for forum thread creation

Forum channels that require tags fail with "A tag is required" when
creating threads because there was no way to pass tag IDs. Add
appliedTags parameter to the thread-create action so forum posts can
include required tags from the channel's available_tags list.
This commit is contained in:
Pushkar Kathayat
2026-03-01 11:17:28 +05:30
committed by Peter Steinberger
parent 5b64b96c6c
commit 7f4d1b7531
6 changed files with 56 additions and 6 deletions

View File

@@ -230,6 +230,7 @@ export async function handleDiscordMessageAction(
const autoArchiveMinutes = readNumberParam(params, "autoArchiveMin", {
integer: true,
});
const appliedTags = readStringArrayParam(params, "appliedTags");
return await handleDiscordAction(
{
action: "threadCreate",
@@ -239,6 +240,7 @@ export async function handleDiscordMessageAction(
messageId,
content,
autoArchiveMinutes,
appliedTags: appliedTags ?? undefined,
},
cfg,
actionOptions,