diff --git a/modules/Classes/DiscordLogger.py b/modules/Classes/DiscordLogger.py index 4826303..3199445 100644 --- a/modules/Classes/DiscordLogger.py +++ b/modules/Classes/DiscordLogger.py @@ -1,8 +1,7 @@ from discord import Embed, Colour, File from modules.Classes.Config import Config -from modules.Classes.UserCredentials import UserCredentials -from modules.Tools.logger import info, warning, error, critical +from modules.Tools.logger import error from modules.Tools.tools import format_error @@ -25,7 +24,7 @@ class DiscordLogger: img.save("screenshot.png") embed = Embed( - title="An Error has occured", + title="An Error has occurred", description=str(message), colour=Colour.red(), ) @@ -35,4 +34,3 @@ class DiscordLogger: self.config.discord.wh.send(embed=embed, username="error", file=file, avatar_url=self.config.discord.avatar_url) self.config.discord.wh.send(username="error", file=File("page.html"), avatar_url=self.config.discord.avatar_url) -