mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 08:52:43 +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
@@ -124,6 +124,9 @@ export async function createThreadDiscord(
|
||||
if (isForumLike) {
|
||||
const starterContent = payload.content?.trim() ? payload.content : payload.name;
|
||||
body.message = { content: starterContent };
|
||||
if (payload.appliedTags?.length) {
|
||||
body.applied_tags = payload.appliedTags;
|
||||
}
|
||||
}
|
||||
// When creating a standalone thread (no messageId) in a non-forum channel,
|
||||
// default to public thread (type 11). Discord defaults to private (type 12)
|
||||
|
||||
Reference in New Issue
Block a user