baumsplitter41 3 giorni fa
parent
commit
c47be844cb
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5 5
      VPD_BOT/cogs/matesearch.py

+ 5 - 5
VPD_BOT/cogs/matesearch.py

@@ -75,13 +75,13 @@ class Matesearch(commands.Cog):
             embed.add_field(name="Zeit", value=self.children[1].value, inline=False)
             self.embed = embed
 
-            #sending the embed
-            await interaction.response.send_message("Your search for players has been submitted.", ephemeral=True)
+            #sending the embed         
             search_channel = self._get_channel()
-            await search_channel.send(embeds=[embed])
+            msg = await search_channel.send(embeds=[embed])
+            await interaction.response.send_message("Your search for players has been submitted.", ephemeral=True)
             try:
-                await embed.add_reaction("✅")
-                await embed.add_reaction("❌")
+                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}>")