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:
parent
7c4dc07273
commit
29af971c39
2 changed files with 19 additions and 13 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue