feat(discord): add DiscordRescheduleVotingRenderer and replace inline helper

This commit is contained in:
2026-05-20 12:23:25 +03:00
parent fdfc73ae9c
commit 9712fe125b
3 changed files with 71 additions and 41 deletions
@@ -1,6 +1,7 @@
namespace GmRelay.DiscordBot.Features.Sessions;
using Dapper;
using GmRelay.DiscordBot.Rendering;
using GmRelay.Shared.Domain;
using GmRelay.Shared.Features.Sessions.RescheduleSession;
using GmRelay.Shared.Platform;
@@ -105,7 +106,7 @@ public sealed class DiscordRescheduleVoteHandler(
await transaction.CommitAsync(ct);
// 5. Re-render and update Discord vote message
var (embed, actionRow) = DiscordRescheduleHandler.BuildVoteMessage(
var (embed, actionRow) = DiscordRescheduleVotingRenderer.Render(
proposal.Title, proposal.CurrentScheduledAt, proposal.VotingDeadlineAt,
options, participants, votes);