Skip to content

feat(dc): add FirstThumbnailURL helper - #3316

Merged
mkmccarty merged 1 commit into
mainfrom
mm-branch-1
Nov 14, 2026
Merged

mkmccarty merged 1 commit into
mainfrom
mm-branch-1

Conversation

@mkmccarty

Copy link
Copy Markdown
Owner

Introduce ComponentEvent.FirstThumbnailURL to scan top-level
discord.SectionComponent entries for the first Thumbnail accessory and
return its Media.URL, or an empty string if none exists.

Refactor virtue_all.go to reuse this helper when determining avatar URL,
removing duplicated thumbnail traversal logic and ensuring both callers
use the same extraction behavior.

Introduce ComponentEvent.FirstThumbnailURL to scan top-level
discord.SectionComponent entries for the first Thumbnail accessory and
return its Media.URL, or an empty string if none exists.

Refactor virtue_all.go to reuse this helper when determining avatar URL,
removing duplicated thumbnail traversal logic and ensuring both callers
use the same extraction behavior.
@mkmccarty
mkmccarty merged commit 73d5973 into main Nov 14, 2026
11 checks passed
@mkmccarty
mkmccarty deleted the mm-branch-1 branch November 14, 2026 20:20
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