From e1e94a1ba304c3fe8128fa804e87caf8a5a6a4cb Mon Sep 17 00:00:00 2001 From: Lilac-Rose Date: Fri, 14 Nov 2025 10:11:43 +0100 Subject: [PATCH] added suggestion command grouping --- suggestion/suggest.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/suggestion/suggest.py b/suggestion/suggest.py index 6028cfa..e6a06d5 100644 --- a/suggestion/suggest.py +++ b/suggestion/suggest.py @@ -254,7 +254,9 @@ class Suggestion(commands.Cog): print(f"Error in suggest command: {e}") await interaction.followup.send(f"❌ An error occurred: {e}") - @app_commands.command(name="suggestion_view", description="View full details of a suggestion") + suggestion = app_commands.Group(name="suggestion", description="Manage suggestions") + + @suggestion.command(name="view", description="View full details of a suggestion") async def suggestion_view(self, interaction: discord.Interaction, suggestion_id: int): await interaction.response.defer(thinking=True) @@ -296,7 +298,7 @@ class Suggestion(commands.Cog): await interaction.followup.send(embed=embed) - @app_commands.command(name="suggestion_complete", description="Mark an approved suggestion as completed") + @suggestion.command(name="complete", description="Mark an approved suggestion as completed") async def suggestion_complete(self, interaction: discord.Interaction, suggestion_id: int): await interaction.response.defer(thinking=True) @@ -332,7 +334,7 @@ class Suggestion(commands.Cog): if channel: await channel.send(f"🎉 Suggestion **#{suggestion_id}** (`{suggestion_text}`) has been marked as **completed!**") - @app_commands.command(name="suggestion_list", description="List suggestions (use status filter to narrow)") + @suggestion.command(name="list", description="List suggestions (use status filter to narrow)") @app_commands.choices(status=[ app_commands.Choice(name="All", value="All"), app_commands.Choice(name="Pending", value="Pending"),