From 15709bc8fb99bdbb7fe986195d1aec5f28f7dea2 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Fri, 29 Nov 2024 08:52:47 +0000 Subject: [PATCH] change: Finished giveaway will now reply to the giveaway message and ping a winner --- src/NadekoBot/Modules/Utility/Giveaway/GiveawayService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NadekoBot/Modules/Utility/Giveaway/GiveawayService.cs b/src/NadekoBot/Modules/Utility/Giveaway/GiveawayService.cs index b8ad84835..d6131bb8d 100644 --- a/src/NadekoBot/Modules/Utility/Giveaway/GiveawayService.cs +++ b/src/NadekoBot/Modules/Utility/Giveaway/GiveawayService.cs @@ -341,6 +341,9 @@ public sealed class GiveawayService : INService, 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 {