From 00dcaf8a1cfb11ef105df302163f10d29c0c47c3 Mon Sep 17 00:00:00 2001 From: Shiven Ajwaliya Date: Wed, 1 Apr 2026 22:27:45 -0400 Subject: [PATCH] 182-Enhancement add Portuguese embed to SA tourney sticky message --- features/tourney/tourney_commands.py | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/features/tourney/tourney_commands.py b/features/tourney/tourney_commands.py index de3083e..1c2a566 100644 --- a/features/tourney/tourney_commands.py +++ b/features/tourney/tourney_commands.py @@ -2815,11 +2815,23 @@ async def refresh_sticky_redirect( ) if is_sa_tourney: - description = f"# ⚠️ ¡Atención!\n# Por favor, usa {support_mention} para abrir un ticket de soporte para el torneo." + embeds = [ + discord.Embed( + description=f"# ⚠️ ¡Atención!\n# Por favor, usa {support_mention} para abrir un ticket de soporte para el torneo.", + color=discord.Color.red(), + ), + discord.Embed( + description=f"# ⚠️ Atenção!\n# Por favor, use {support_mention} para abrir um ticket de suporte para o torneio.", + color=discord.Color.red(), + ), + ] else: - description = f"# ⚠️ Attention!\n# Please use {support_mention} to open a support ticket for the tournament." - - embed = discord.Embed(description=description, color=discord.Color.red()) + embeds = [ + discord.Embed( + description=f"# ⚠️ Attention!\n# Please use {support_mention} to open a support ticket for the tournament.", + color=discord.Color.red(), + ) + ] # Try deleting the previously tracked sticky message first. old_msg_id = sticky_redirect_message_ids.get(channel.id) @@ -2834,13 +2846,13 @@ async def refresh_sticky_redirect( async for msg in channel.history(limit=30): if msg.author != bot.user or not msg.embeds: continue - if msg.embeds[0].description == embed.description: + if msg.embeds[0].description == embeds[0].description: try: await msg.delete() except (discord.NotFound, discord.Forbidden): pass - new_msg = await channel.send(embed=embed) + new_msg = await channel.send(embeds=embeds) sticky_redirect_message_ids[channel.id] = new_msg.id @bot.listen()