From 5ee68b160c871899b222de8ec4b6a15824f251f0 Mon Sep 17 00:00:00 2001 From: Destinea Date: Sun, 15 Dec 2024 18:21:14 +0100 Subject: [PATCH] feat: added text in embed and on end --- bot/giveaway/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot/giveaway/utils.py b/bot/giveaway/utils.py index 3ccf5bd..df5ac1d 100644 --- a/bot/giveaway/utils.py +++ b/bot/giveaway/utils.py @@ -15,7 +15,9 @@ async def produce_giveaway_event(producer, event_type, giveaway): "prize": giveaway['prize'], "mentions": giveaway.get('mentions', []), "winner_count": giveaway.get('winners'), - "message": giveaway.get('text_above_embed', "") if event_type == "giveaway_start" else None, + "text_above_embed": giveaway.get('text_above_embed', "") if event_type == "giveaway_start" else None, + "text_in_embed": giveaway.get('text_in_embed', "") if event_type == "giveaway_start" else None, + "text_on_end": giveaway.get('text_on_end', "") if event_type == "giveaway_end" else None, "image_url": giveaway.get('image_url', None), }