1
0
Fork 0
mirror of https://code.lenaisten.de/Lenaisten/lenaverse-bot.git synced 2024-11-22 06:53:00 +00:00

/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
vorstand: InfoCommand
linktree: InfoCommand
beitreten: FileCommand
beitreten: InfoCommand
fest: InfoCommand
aktion: InfoCommand

View file

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