From 702ad2982229e65a4dbec9a7aea07d56860f6a6e Mon Sep 17 00:00:00 2001 From: Mathis Date: Sat, 14 Mar 2026 22:49:38 +0100 Subject: [PATCH] =?UTF-8?q?Retrait=20de=20l'option=20mot=20de=20passe=20de?= =?UTF-8?q?=20la=20commande=20signaler=20et=20suggerer=20bug/fonctionnalit?= =?UTF-8?q?=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commandes/bug_report.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/commandes/bug_report.py b/commandes/bug_report.py index 3504473..5d0d7b5 100644 --- a/commandes/bug_report.py +++ b/commandes/bug_report.py @@ -251,17 +251,11 @@ class BugReport(commands.Cog): app_commands.Choice(name="Haute", value="High"), app_commands.Choice(name="Urgente", value="Urgent"), ]) - async def signaler_bug(self, interaction: discord.Interaction, priority: app_commands.Choice[str], mot_de_passe: str): - if mot_de_passe != "01thisma": - await interaction.response.send_message("❌ Mot de passe incorrect. Vous n'êtes pas autorisé à signaler un bug.", ephemeral=True) - return + async def signaler_bug(self, interaction: discord.Interaction, priority: app_commands.Choice[str]): await interaction.response.send_modal(BugReportModal(priority)) @app_commands.command(name="suggerer_fonctionnalite", description="Proposer une nouvelle fonctionnalité pour le bot") - async def suggerer_fonctionnalite(self, interaction: discord.Interaction, mot_de_passe: str): - if mot_de_passe != "01thisma": - await interaction.response.send_message("❌ Mot de passe incorrect.", ephemeral=True) - return + async def suggerer_fonctionnalite(self, interaction: discord.Interaction): await interaction.response.send_modal(FeatureSuggestionModal()) async def setup(bot):