Skip to content

fix: render embeds in message list/history/search plain text output#18

Open
flarco wants to merge 1 commit intoDevRohit06:mainfrom
flarco:fix/embed-rendering-in-message-commands
Open

fix: render embeds in message list/history/search plain text output#18
flarco wants to merge 1 commit intoDevRohit06:mainfrom
flarco:fix/embed-rendering-in-message-commands

Conversation

@flarco
Copy link
Copy Markdown

@flarco flarco commented Apr 11, 2026

Problem

Discord bot messages often have empty content with all text in embeds (e.g. Healthchecks.io, Axiom). Three commands were affected:

  • message list: printed blank lines for embed-only messages
  • message history: same; also did not capture embeds in JSON output
  • message search: never matched embed-only messages; --limit limited messages scanned not results returned

Changes

message list / message history:

  • Capture full embed data (title, description, fields, footer, author)
  • Render embeds in plain text: [Title] | description | Field: value | (footer)

message search:

  • Search now covers embed text (title, description, fields, footer, author)
  • Fix --limit to control max results returned (default: unlimited)
  • Add --scan to control messages read from history (default: 500)

Discord bot messages often have empty content with all text in embeds
(e.g. Healthchecks.io, Axiom). Three commands were affected:

- message list: only printed msg.content, skipping embeds entirely
- message history: same issue, also did not capture embeds in JSON
- message search: only searched msg.content so embed-only messages
  never matched; also skipped embeds in plain text output

Changes:
- Capture full embed data (title, description, fields, footer, author)
  in all three commands
- Append rendered embed content to each plain text output line in the
  format: [Title] | description | Field Name: value | (footer)
- Fix message search to build searchable text from both content and
  all embed fields so embed-only messages are found
- Fix message search --limit semantics: previously limited messages
  *scanned* (so --limit 10 meant only check 10 messages); now   *scanned* (so --limit 10 meant only check 10 messages); nls messages scanned
  (default 500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant