mirror of
https://code.lenaisten.de/Lenaisten/lenaverse-bot.git
synced 2024-12-22 19:13:01 +00:00
/beitreten command update
This commit is contained in:
parent
7c4dc07273
commit
29af971c39
2 changed files with 19 additions and 13 deletions
|
@ -64,7 +64,7 @@ class ClubInfo(BaseModel):
|
|||
info: InfoCommand
|
||||
vorstand: InfoCommand
|
||||
linktree: InfoCommand
|
||||
beitreten: FileCommand
|
||||
beitreten: InfoCommand
|
||||
fest: InfoCommand
|
||||
aktion: InfoCommand
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue