Prechádzať zdrojové kódy

changing the query of the msg

baumsplitter41 3 dní pred
rodič
commit
979433b0e3
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      VPD_BOT/cogs/matesearch.py

+ 2 - 1
VPD_BOT/cogs/matesearch.py

@@ -77,13 +77,14 @@ class Matesearch(commands.Cog):
             #sending the embed         
             search_channel = self._get_channel()
             msg = await search_channel.send(embeds=[embed])
+            await search_channel.send(f"<@&{role}>")
             await interaction.response.send_message("Your search for players has been submitted.", ephemeral=True)
             try:
                 await msg.add_reaction("✅")
                 await msg.add_reaction("❌")
             except Exception as e:
                 await interaction.respond(f"Failed to add reaction: {e}", ephemeral=True)
-            await search_channel.send(f"<@&{role}>")
+            
 
     #Slash command to trigger the Modal form
     @slash_command()