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):