From a21c7d2ab85a32a31e0c237926d1d308e696578c Mon Sep 17 00:00:00 2001 From: Toastie Date: Fri, 29 Nov 2024 23:09:46 +1300 Subject: [PATCH] Finished giveaway will now reply to the giveaway message and ping a winner --- src/EllieBot/Modules/Utility/Giveaway/GiveawayService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/EllieBot/Modules/Utility/Giveaway/GiveawayService.cs b/src/EllieBot/Modules/Utility/Giveaway/GiveawayService.cs index 0c2f14e..7f7b065 100644 --- a/src/EllieBot/Modules/Utility/Giveaway/GiveawayService.cs +++ b/src/EllieBot/Modules/Utility/Giveaway/GiveawayService.cs @@ -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 {