From 1c7d1dfcd6a6639734e8eb0b826a5c55c9e19547 Mon Sep 17 00:00:00 2001 From: piair Date: Wed, 28 Feb 2024 11:38:21 +0100 Subject: [PATCH] typo --- modules/Classes/DiscordLogger.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) -