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

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

View file

@ -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