mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 18:14:31 +00:00
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:
committed by
Peter Steinberger
parent
5b64b96c6c
commit
7f4d1b7531
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user