Parcourir la source

changing the query of the msg

baumsplitter41 il y a 3 jours
Parent
commit
979433b0e3
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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         
             #sending the embed         
             search_channel = self._get_channel()
             search_channel = self._get_channel()
             msg = await search_channel.send(embeds=[embed])
             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)
             await interaction.response.send_message("Your search for players has been submitted.", ephemeral=True)
             try:
             try:
                 await msg.add_reaction("✅")
                 await msg.add_reaction("✅")
                 await msg.add_reaction("❌")
                 await msg.add_reaction("❌")
             except Exception as e:
             except Exception as e:
                 await interaction.respond(f"Failed to add reaction: {e}", ephemeral=True)
                 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 to trigger the Modal form
     @slash_command()
     @slash_command()