From b943ba276fc39e7353d164d533a5faa5e9ab5e40 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 21 Sep 2023 12:45:34 -0400 Subject: [PATCH] fix(suggestions): reverted previous fix as that wasn't the issue --- suggestions/suggestions.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/suggestions/suggestions.py b/suggestions/suggestions.py index 6c76740..75a0a4a 100644 --- a/suggestions/suggestions.py +++ b/suggestions/suggestions.py @@ -598,9 +598,8 @@ class Suggestions(commands.Cog): ) class SuggestionApproveModal(discord.ui.Modal, title="Approving suggestion..."): - def __init__(self, old_interaction, message): + def __init__(self, message): super().__init__() - self.old_interaction: discord.Interaction = old_interaction self.message: discord.Message = message reason = discord.ui.TextInput( @@ -612,7 +611,7 @@ class SuggestionApproveModal(discord.ui.Modal, title="Approving suggestion..."): ) async def on_submit(self, interaction: discord.Interaction): - cog = self.old_interaction.client.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: @@ -620,9 +619,8 @@ class SuggestionApproveModal(discord.ui.Modal, title="Approving suggestion..."): await interaction.response.send_message(content="Suggestion approved!", ephemeral=True) class SuggestionDenyModal(discord.ui.Modal, title="Denying suggestion..."): - def __init__(self, old_interaction, message): + def __init__(self, message): super().__init__() - self.old_interaction: discord.Interaction = old_interaction self.message: discord.Message = message reason = discord.ui.TextInput( @@ -634,7 +632,7 @@ class SuggestionDenyModal(discord.ui.Modal, title="Denying suggestion..."): ) async def on_submit(self, interaction: discord.Interaction): - cog = self.old_interaction.client.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: