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: