From 3a7d4132e0c1e9556d6622afbc83c0495ff26a4e Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 21 Sep 2023 12:41:13 -0400 Subject: [PATCH] fix(suggestions): hopefully fixed class instantizing for suggestions context menu cmds --- suggestions/suggestions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/suggestions/suggestions.py b/suggestions/suggestions.py index cfd3a4d..fb1f656 100644 --- a/suggestions/suggestions.py +++ b/suggestions/suggestions.py @@ -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 = interaction.client.get_cog('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 = interaction.client.get_cog('Suggestions') if self.reason.value != "": await Suggestions._interaction_finish_suggestion(cog, interaction, self.message, False, self.reason.value) else: