feat(suggestions): added approve as a context menu command
This commit is contained in:
parent
e0e40ca99a
commit
653d698774
1 changed files with 4 additions and 0 deletions
|
@ -208,6 +208,10 @@ class Suggestions(commands.Cog):
|
||||||
await old_msg.edit(content=content, embed=embed)
|
await old_msg.edit(content=content, embed=embed)
|
||||||
await ctx.tick()
|
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.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
|
||||||
|
|
Loading…
Reference in a new issue