From 653d698774c38db518c7a58603d09ed0cc4a9b7a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 21 Sep 2023 11:07:40 -0400 Subject: [PATCH] feat(suggestions): added approve as a context menu command --- suggestions/suggestions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/suggestions/suggestions.py b/suggestions/suggestions.py index 9174258..7a5cb7f 100644 --- a/suggestions/suggestions.py +++ b/suggestions/suggestions.py @@ -208,6 +208,10 @@ class Suggestions(commands.Cog): await old_msg.edit(content=content, embed=embed) await ctx.tick() + @app_commands.context_menu(name="Approve Suggestion") + async def approve_context(self, interaction: discord.Interaction, message: discord.Message): + await interaction.response.send_modal(self.SuggestionApproveModal(self, message)) + @checks.admin() @checks.bot_has_permissions( manage_channels=True, add_reactions=True, manage_messages=True