fix(discord): support applied_tags for forum thread creation#30358
Merged
steipete merged 1 commit intoopenclaw:mainfrom Mar 2, 2026
Merged
fix(discord): support applied_tags for forum thread creation#30358steipete merged 1 commit intoopenclaw:mainfrom
steipete merged 1 commit intoopenclaw:mainfrom
Conversation
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.
Contributor
Greptile SummaryAdded support for Key changes:
Implementation details:
The implementation is clean, type-safe, and follows existing patterns in the codebase. Confidence Score: 5/5
Last reviewed commit: b09a595 |
Contributor
|
Landed via temp rebase onto main.
Thanks @pushkarsingh32! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A tag is required to create a forum post in this channelbecause there was no way to pass tag IDs during thread creation.appliedTagsparameter (string array of tag IDs) to thethread-createaction, passed as Discord API'sapplied_tagsfield on forum/media thread creation requests.channel-listwhich returnsavailable_tags.Closes #30309
Change Type
Scope
Files Changed
src/discord/send.types.ts— addedappliedTags?: string[]toDiscordThreadCreatesrc/discord/send.messages.ts— passapplied_tagsin request body for forum/media threadssrc/agents/tools/message-tool.ts— addedappliedTagsto thread schemasrc/channels/plugins/actions/discord/handle-action.ts— read and forwardappliedTagsparamsrc/agents/tools/discord-actions-messaging.ts— read and forwardappliedTagsparamsrc/discord/send.creates-thread.test.ts— added tests for forum tag passing and non-forum exclusionTest plan
applied_tagsis included in forum thread creation bodyapplied_tagsis omitted for non-forum channels