feat(suggestions): added deny as a context menu command

This commit is contained in:
Seaswimmer 2023-09-21 11:08:39 -04:00
parent 653d698774
commit 48c75b80f6
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -212,6 +212,10 @@ class Suggestions(commands.Cog):
async def approve_context(self, interaction: discord.Interaction, message: discord.Message): async def approve_context(self, interaction: discord.Interaction, message: discord.Message):
await interaction.response.send_modal(self.SuggestionApproveModal(self, 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.admin()
@checks.bot_has_permissions( @checks.bot_has_permissions(
manage_channels=True, add_reactions=True, manage_messages=True manage_channels=True, add_reactions=True, manage_messages=True