From 17f44f2828f9c4d566b27c2f58bfcbf5e08e546d Mon Sep 17 00:00:00 2001 From: dnns01 <github@dnns01.de> Date: Tue, 10 Sep 2024 21:23:17 +0200 Subject: [PATCH] Rename argument `show_all` to `public` --- extensions/appointments.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/appointments.py b/extensions/appointments.py index 1c0fd0b..c3d5824 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: -- GitLab