baumsplitter41 3 dias atrás
pai
commit
19aa4691ef
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      VPD_BOT/cogs/matesearch.py

+ 4 - 4
VPD_BOT/cogs/matesearch.py

@@ -48,27 +48,27 @@ class Matesearch(commands.Cog):
             if search_role is None:
                 print(f"Role with ID {search_role_id} not found.")
                 return None
-            return search_role
+            return search_role_id
 
 
         #Output of the Modal form
         async def callback(self, interaction: discord.Interaction):
             #Public embed with less information
             role = self._get_role(interaction)
-            ping_value = role.mention if role is not None else "Role not found"
+            #ping_value = role.mention if role is not None else "Role not found"
 
             embed = discord.Embed(title="Mitspieler gesucht!")
             embed.add_field(name="Ersteller", value=interaction.user.mention, inline=False)
             embed.add_field(name="Datum", value=self.children[0].value, inline=False)
             embed.add_field(name="Zeit", value=self.children[1].value, inline=False)
-            embed.add_field(name="Ping", value=ping_value, inline=False)
+            embed.add_field(name="Ping", value=f"<@&{role}>", inline=False)
             self.embed = embed
 
             #sending the embed
             await interaction.response.send_message("Your search for players has been submitted.", ephemeral=True)
             search_channel = self._get_channel()
             await search_channel.send(embeds=[embed])
-            await search_channel.send(f"<@&{role}>")
+            #await search_channel.send(f"<@&{role}>")
 
     #Slash command to trigger the Modal form
     @slash_command()