feat(discord): add thread export command#794
Open
clsung wants to merge 1 commit into
Open
Conversation
f3788f2 to
90fdf5d
Compare
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.
What problem does this solve?
Discord threads can contain useful debugging or design context, but users currently need to manually copy messages if they want a plain-text archive to share, search, or attach elsewhere.
Closes #
Discord Discussion URL: https://discord.com/channels/1491295327620169908/1503358908331462677
At a Glance
Prior Art & Industry Research
Not applicable — this is a small Discord adapter convenience command, not a new architecture, scheduler, delivery mechanism, or persistence model.
OpenClaw: Not applicable.
Hermes Agent: Not applicable.
Other references (optional): Discord message history and interaction attachment APIs via serenity.
Proposed Solution
Add a Discord slash command,
/export-thread, that exports the current allowed thread or enabled DM as a.txttranscript. The export includes timestamps, author names and IDs, message text, and attachment URLs.The command returns the transcript as an ephemeral follow-up attachment so only the invoking user sees the generated file.
Why this approach?
This keeps export behavior in the Discord adapter where message history and interaction response APIs already live. It does not involve the agent session, so thread contents are not sent to the coding agent merely to produce an export.
Known limitations:
Alternatives Considered
Validation
cargo checkpassescargo testpasses (including new tests)cargo clippycleanNotes: local Rust validation was not available in this environment because
cargoandrustfmtare not installed.git diff --checkpasses.