From 5aa938acb8d081b75234f610534198089c88fabc Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 21 Sep 2023 12:30:39 -0400 Subject: [PATCH] fix(suggestions): fixed using bot instead of Red --- suggestions/suggestions.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/suggestions/suggestions.py b/suggestions/suggestions.py index 69b3875..cfd3a4d 100644 --- a/suggestions/suggestions.py +++ b/suggestions/suggestions.py @@ -2,9 +2,8 @@ import datetime import re import typing import discord -from redbot.core import app_commands, Config, checks, commands, bot +from redbot.core import app_commands, Config, checks, commands from redbot.core.bot import Red -from redbot.core.utils.chat_formatting import humanize_list class Suggestions(commands.Cog): @@ -612,7 +611,7 @@ class SuggestionApproveModal(discord.ui.Modal, title="Approving suggestion..."): ) async def on_submit(self, interaction: discord.Interaction): - cog = bot.get_cog('Suggestions') + cog = Red.get_cog('Suggestions') if self.reason.value != "": await Suggestions._interaction_finish_suggestion(cog, interaction, self.message, True, self.reason.value) else: @@ -633,7 +632,7 @@ class SuggestionDenyModal(discord.ui.Modal, title="Denying suggestion..."): ) async def on_submit(self, interaction: discord.Interaction): - cog = bot.get_cog('Suggestions') + cog = Red.get_cog('Suggestions') if self.reason.value != "": await Suggestions._interaction_finish_suggestion(cog, interaction, self.message, False, self.reason.value) else: