From 48c75b80f6f67039d41608ba543570bd01c3ddef Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 21 Sep 2023 11:08:39 -0400 Subject: [PATCH] feat(suggestions): added deny 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 7a5cb7f..74f38fd 100644 --- a/suggestions/suggestions.py +++ b/suggestions/suggestions.py @@ -212,6 +212,10 @@ class Suggestions(commands.Cog): async def approve_context(self, interaction: discord.Interaction, message: discord.Message): await interaction.response.send_modal(self.SuggestionApproveModal(self, message)) + @app_commands.context_menu(name="Deny Suggestion") + async def deny_context(self, interaction: discord.Interaction, message: discord.Message): + await interaction.response.send_modal(self.SuggestionDenyModal(self, message)) + @checks.admin() @checks.bot_has_permissions( manage_channels=True, add_reactions=True, manage_messages=True