diff --git a/extensions/module_information.py b/extensions/module_information.py index f3b3948950df1522d5265f3c33b27579c76d6038..a5a478d03abd2213b5aed454e33d49c0e90442f7 100644 --- a/extensions/module_information.py +++ b/extensions/module_information.py @@ -172,10 +172,11 @@ class ModuleInformation(commands.Cog): @app_commands.command(name="module", description="Erhalte die Modulinformationen von der Uniwebseite.") - @app_commands.describe(public="Sichtbarkeit der Ausgabe: für alle Mitglieder oder nur für dich.", - topic="Möchtest du eine bestimmte Rubrik abrufen?", - module_nr="Nummer des Moduls, das dich interessiert. (In einem Moduilkanal optional).") - async def cmd_module(self, interaction: Interaction, public: bool, topic: Topics = None, module_nr: int = None): + @app_commands.describe(topic="Möchtest du eine bestimmte Rubrik abrufen?", + module_nr="Nummer des Moduls, das dich interessiert. (In einem Moduilkanal optional).", + public="Sichtbarkeit der Ausgabe: für alle Mitglieder oder nur für dich.") + async def cmd_module(self, interaction: Interaction, topic: Topics = None, module_nr: int = None, + public: bool = True): await interaction.response.defer(ephemeral=not public) try: