fix(suggestions): changed some indentation
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
parent
ae96e7d08d
commit
9568fb548e
1 changed files with 38 additions and 38 deletions
|
@ -598,7 +598,7 @@ class Suggestions(commands.Cog):
|
||||||
True
|
True
|
||||||
)
|
)
|
||||||
|
|
||||||
class SuggestionApproveModal(discord.ui.Modal, title="Approving suggestion..."):
|
class SuggestionApproveModal(discord.ui.Modal, title="Approving suggestion..."):
|
||||||
def __init__(self, cog_instance, message):
|
def __init__(self, cog_instance, message):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.cog_instance = cog_instance
|
self.cog_instance = cog_instance
|
||||||
|
@ -619,7 +619,7 @@ class Suggestions(commands.Cog):
|
||||||
await self.cog_instance.interaction_finish_suggestion(interaction, self.message, True, None)
|
await self.cog_instance.interaction_finish_suggestion(interaction, self.message, True, None)
|
||||||
await interaction.response.send_message(content="Suggestion approved!", ephemeral=True)
|
await interaction.response.send_message(content="Suggestion approved!", ephemeral=True)
|
||||||
|
|
||||||
class SuggestionDenyModal(discord.ui.Modal, title="Denying suggestion..."):
|
class SuggestionDenyModal(discord.ui.Modal, title="Denying suggestion..."):
|
||||||
def __init__(self, cog_instance, message):
|
def __init__(self, cog_instance, message):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.cog_instance = cog_instance
|
self.cog_instance = cog_instance
|
||||||
|
@ -642,8 +642,8 @@ class Suggestions(commands.Cog):
|
||||||
|
|
||||||
@app_commands.context_menu(name="Approve Suggestion")
|
@app_commands.context_menu(name="Approve Suggestion")
|
||||||
async def approve_context(interaction: discord.Interaction, message: discord.Message):
|
async def approve_context(interaction: discord.Interaction, message: discord.Message):
|
||||||
await interaction.response.send_modal(Suggestions.SuggestionApproveModal(Suggestions, message))
|
await interaction.response.send_modal(SuggestionApproveModal(Suggestions, message))
|
||||||
|
|
||||||
@app_commands.context_menu(name="Deny Suggestion")
|
@app_commands.context_menu(name="Deny Suggestion")
|
||||||
async def deny_context(interaction: discord.Interaction, message: discord.Message):
|
async def deny_context(interaction: discord.Interaction, message: discord.Message):
|
||||||
await interaction.response.send_modal(Suggestions.SuggestionDenyModal(Suggestions, message))
|
await interaction.response.send_modal(SuggestionDenyModal(Suggestions, message))
|
||||||
|
|
Loading…
Reference in a new issue