feat(suggestions): added deny as a context menu command
This commit is contained in:
parent
653d698774
commit
48c75b80f6
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue