|
@@ -31,7 +31,7 @@ class Matesearch(commands.Cog):
|
|
|
min_values=1,
|
|
min_values=1,
|
|
|
max_values=1))"""
|
|
max_values=1))"""
|
|
|
self.add_item(discord.ui.InputText(label="Tag", placeholder="Montag, Dienstag, Mittwoch, Donnerstag, Freitag", required=False, ))
|
|
self.add_item(discord.ui.InputText(label="Tag", placeholder="Montag, Dienstag, Mittwoch, Donnerstag, Freitag", required=False, ))
|
|
|
- self.add_item(discord.ui.InputText(label="Time", placeholder="Insert the estimated time."))
|
|
|
|
|
|
|
+ self.add_item(discord.ui.InputText(label="Zeit", placeholder="19 Uhr"))
|
|
|
|
|
|
|
|
#funktions to load the config and get the channels
|
|
#funktions to load the config and get the channels
|
|
|
def _load_config(self):
|
|
def _load_config(self):
|
|
@@ -79,6 +79,11 @@ class Matesearch(commands.Cog):
|
|
|
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)
|
|
|
search_channel = self._get_channel()
|
|
search_channel = self._get_channel()
|
|
|
await search_channel.send(embeds=[embed])
|
|
await search_channel.send(embeds=[embed])
|
|
|
|
|
+ try:
|
|
|
|
|
+ await embed.add_reaction("✅")
|
|
|
|
|
+ await embed.add_reaction("❌")
|
|
|
|
|
+ except Exception as e:
|
|
|
|
|
+ await interaction.respond(f"Failed to add reaction: {e}", ephemeral=True)
|
|
|
await search_channel.send(f"<@&{role}>")
|
|
await search_channel.send(f"<@&{role}>")
|
|
|
|
|
|
|
|
#Slash command to trigger the Modal form
|
|
#Slash command to trigger the Modal form
|