From d0cefbff81159500a174ef6107b573cf48c0ac8e Mon Sep 17 00:00:00 2001 From: insert Date: Sun, 11 Aug 2024 13:08:24 -0400 Subject: [PATCH] Update --- misc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/misc.py b/misc.py index 64032c9..a0fc0f8 100644 --- a/misc.py +++ b/misc.py @@ -21,6 +21,7 @@ class misc(commands.Cog): async def errorhandler(self, interaction: nextcord.Interaction, error: nextcord.DiscordException): error = traceback.format_exception(type(error), error, error.__traceback__) print(error, file=sys.stderr) + error = traceback.format_exc(error) random.shuffle(errormsg) message = f"{errormsg[0]}\n```py\n{error[-1800:]}\n```\n Contact <@{self.bot.owner_id}> if the error persists" try: