/beitreten command update

This commit is contained in:
Jörn-Michael Miehe 2023-11-22 22:37:30 +01:00
parent 7c4dc07273
commit 29af971c39
2 changed files with 19 additions and 13 deletions

View file

@ -64,7 +64,7 @@ class ClubInfo(BaseModel):
info: InfoCommand info: InfoCommand
vorstand: InfoCommand vorstand: InfoCommand
linktree: InfoCommand linktree: InfoCommand
beitreten: FileCommand beitreten: InfoCommand
fest: InfoCommand fest: InfoCommand
aktion: InfoCommand aktion: InfoCommand

View file

@ -71,19 +71,25 @@ async def beitreten(interaction: discord.Interaction) -> None:
Wie und warum dem Verein beitreten Wie und warum dem Verein beitreten
""" """
if (file := await CONFIG.ev_info.beitreten.as_discord_file) is not None:
await interaction.response.send_message( await interaction.response.send_message(
content=CONFIG.ev_info.beitreten.content, content=CONFIG.ev_info.beitreten.content,
file=file,
suppress_embeds=True, suppress_embeds=True,
ephemeral=reply_private(interaction, CONFIG.ev_info.beitreten.name), ephemeral=reply_private(interaction, CONFIG.ev_info.beitreten.name),
) )
else: # if (file := await CONFIG.ev_info.beitreten.as_discord_file) is not None:
await interaction.response.send_message( # await interaction.response.send_message(
content=CONFIG.command_failed, # content=CONFIG.ev_info.beitreten.content,
ephemeral=True, # file=file,
) # suppress_embeds=True,
# ephemeral=reply_private(interaction, CONFIG.ev_info.beitreten.name),
# )
# else:
# await interaction.response.send_message(
# content=CONFIG.command_failed,
# ephemeral=True,
# )
@ev_command( @ev_command(