diff --git a/extensions/appointments.py b/extensions/appointments.py index 1c0fd0b65ec40d8a437ae43f7b0d60a0ba3c1678..c3d582474827c4023f4765090af2f14f6ec4629a 100644 --- a/extensions/appointments.py +++ b/extensions/appointments.py @@ -91,10 +91,10 @@ class Appointments(commands.GroupCog, name="appointments", description="Handle A Appointment.update(message=message.id).where(Appointment.id == appointment.id).execute() @app_commands.command(name="list", description="Listet alle Termine dieses Kanals auf.") - @app_commands.describe(show_all="Zeige die Liste für alle an.") - async def cmd_appointments_list(self, interaction: Interaction, show_all: bool = False): + @app_commands.describe(public="Sichtbarkeit der Ausgabe: für alle Mitglieder oder nur für dich.") + async def cmd_appointments_list(self, interaction: Interaction, public: bool = False): """ List (and link) all Appointments in the current channel """ - await interaction.response.defer(ephemeral=not show_all) + await interaction.response.defer(ephemeral=not public) appointments = Appointment.select().where(Appointment.channel == interaction.channel_id) if appointments: