Skip to content

feat(dc): preserve message layout components - #3314

Merged
mkmccarty merged 1 commit into
mainfrom
virtue-no-refetch
Nov 14, 2026
Merged

mkmccarty merged 1 commit into
mainfrom
virtue-no-refetch

Conversation

@mkmccarty

Copy link
Copy Markdown
Owner

Add Components support to MessageRef and populate it when converting
Discord messages. Handle nil components safely and split ActionRows into
typed dc.ActionRow values while preserving other components as raw
components.

Update virtue timer cleanup to rely on fetched message components from
GetMessage instead of using ei contact API and re-rendering components.
This avoids unnecessary API calls and keeps button cleanup logic
consistent with the actual message layout.

Also remove the unused ei import in virtue timers.

Add Components support to MessageRef and populate it when converting
Discord messages. Handle nil components safely and split ActionRows into
typed dc.ActionRow values while preserving other components as raw
components.

Update virtue timer cleanup to rely on fetched message components from
GetMessage instead of using ei contact API and re-rendering components.
This avoids unnecessary API calls and keeps button cleanup logic
consistent with the actual message layout.

Also remove the unused ei import in virtue timers.
@mkmccarty
mkmccarty merged commit ef40a5e into main Nov 14, 2026
11 checks passed
@mkmccarty
mkmccarty deleted the virtue-no-refetch branch November 14, 2026 17:19
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