Skip to content

Post Sharpie's replies without link previews - #14

Merged
HarryCordewener merged 1 commit into
mainfrom
claude/suppress-embeds
Dec 2, 2026
Merged

HarryCordewener merged 1 commit into
mainfrom
claude/suppress-embeds

Conversation

@HarryCordewener

Copy link
Copy Markdown
Member

Requested by Grave · project thread

Why

Every answer ends in a Sources line, and Discord added a preview card for each address in it.

What changes

Sharpie's own messages are now sent with Discord's SUPPRESS_EMBEDS message flag (MessageFlags.SuppressEmbeds):

  • each part of an answer
  • the answer rewritten by an edit (set again in ModifyAsync)
  • the "Edited my answer" note
  • the hand-over message

The links stay clickable; only the preview cards go away. I used the flag, not <url> wrapping in the text. The flag doesn't depend on the model formatting links a particular way, and it also covers links in the bot's own text, such as the edit note's jump link and hand-over reasons.

The CHANGELOG has an entry.

Testing

  • dotnet build: 0 warnings, 0 errors.
  • 105 tests pass, and dotnet format --verify-no-changes is clean.
  • Nothing tests Discord here. After you redeploy, check that a new answer's Sources line shows no cards.

🤖 Generated with Claude Code

Every answer ends in a Sources line, and Discord added a preview card
for each address. Answers, the edited answer, the edit note and the
hand-over are now sent with SuppressEmbeds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HarryCordewener HarryCordewener self-assigned this Dec 2, 2026
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 2 billable files and costs up to $0.50.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 17 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 62 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: ced80510-3f78-402d-b603-8f2e616817f5
Commits

Reviewing files that changed from the base of the PR and between 2bbb770 and a679d23.

Files selected for processing: 2

  • CHANGELOG.md
  • src/Sharpie/SharpieBot.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@HarryCordewener
HarryCordewener marked this pull request as ready for review December 2, 2026 23:09
@HarryCordewener
HarryCordewener merged commit 406ecaf into main Dec 2, 2026
3 checks passed
@HarryCordewener
HarryCordewener deleted the claude/suppress-embeds branch December 2, 2026 23:14
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