fix(suggestions): whoops!
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
Seaswimmer 2023-09-21 12:37:16 -04:00
parent fa3301e2db
commit a02b488934
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -611,7 +611,7 @@ class SuggestionApproveModal(discord.ui.Modal, title="Approving suggestion..."):
)
async def on_submit(self, interaction: discord.Interaction):
cog = Red.get_cog('Suggestions')
cog = Red.get_cog(name='Suggestions')
if self.reason.value != "":
await Suggestions._interaction_finish_suggestion(cog, interaction, self.message, True, self.reason.value)
else:
@ -632,7 +632,7 @@ class SuggestionDenyModal(discord.ui.Modal, title="Denying suggestion..."):
)
async def on_submit(self, interaction: discord.Interaction):
cog = Red.get_cog(Suggestions)
cog = Red.get_cog(name='Suggestions')
if self.reason.value != "":
await Suggestions._interaction_finish_suggestion(cog, interaction, self.message, False, self.reason.value)
else: