Finished giveaway will now reply to the giveaway message and ping a winner

This commit is contained in:
Toastie 2024-11-29 23:09:46 +13:00
parent 04a69b9ddd
commit a21c7d2ab8
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4

View file

@ -341,6 +341,9 @@ public sealed class GiveawayService : IEService, IReadyExecutor
try
{
await msg.ModifyAsync(x => x.Embed = eb.Build());
if (winner is not null)
await _sender.Response(ch).Message(msg).Text($"🎉 <{winner.UserId}>").SendAsync();
}
catch
{