From 5913305be96093c533b9f6e139afeb1519acadef Mon Sep 17 00:00:00 2001 From: Lowei Date: Sat, 23 May 2026 15:17:35 +0200 Subject: [PATCH] =?UTF-8?q?fix(bug=5Freport):=20envoyer=20le=20modal=20dir?= =?UTF-8?q?ectement=20sans=20message=20interm=C3=A9diaire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Les commandes /signaler_bug et /suggerer_fonctionnalite ouvrent maintenant le formulaire modal directement sans passer par un embed + bouton. Co-Authored-By: Claude Opus 4.6 --- commandes/bug_report.py | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/commandes/bug_report.py b/commandes/bug_report.py index 85a7091..dbb36c1 100644 --- a/commandes/bug_report.py +++ b/commandes/bug_report.py @@ -457,13 +457,8 @@ class BugReport(commands.Cog): ) async def signifier_bug(self, interaction: disnake.ApplicationCommandInteraction): """Ouvre un formulaire pour signaler un bug.""" - embed = disnake.Embed( - title="🐛 Signaler un Bug", - description="Cliquez sur le bouton ci-dessous pour remplir le formulaire de signalement.", - color=disnake.Color.red() - ) - view = BugReportView() - await interaction.response.send_message(embed=embed, view=view, ephemeral=True) + modal = BugReportModal() + await interaction.response.send_modal(modal) @commands.slash_command( name="suggerer_fonctionnalite", @@ -471,13 +466,8 @@ class BugReport(commands.Cog): ) async def suggerer_fonctionnalite(self, interaction: disnake.ApplicationCommandInteraction): """Ouvre un formulaire pour suggérer une fonctionnalité.""" - embed = disnake.Embed( - title="💡 Suggérer une Fonctionnalité", - description="Cliquez sur le bouton ci-dessous pour remplir le formulaire de suggestion.", - color=disnake.Color.green() - ) - view = FeatureSuggestionView() - await interaction.response.send_message(embed=embed, view=view, ephemeral=True) + modal = FeatureSuggestionModal() + await interaction.response.send_modal(modal) def setup(bot):