Update
This commit is contained in:
parent
e1dd83b592
commit
d0cefbff81
1 changed files with 1 additions and 0 deletions
1
misc.py
1
misc.py
|
@ -21,6 +21,7 @@ class misc(commands.Cog):
|
||||||
async def errorhandler(self, interaction: nextcord.Interaction, error: nextcord.DiscordException):
|
async def errorhandler(self, interaction: nextcord.Interaction, error: nextcord.DiscordException):
|
||||||
error = traceback.format_exception(type(error), error, error.__traceback__)
|
error = traceback.format_exception(type(error), error, error.__traceback__)
|
||||||
print(error, file=sys.stderr)
|
print(error, file=sys.stderr)
|
||||||
|
error = traceback.format_exc(error)
|
||||||
random.shuffle(errormsg)
|
random.shuffle(errormsg)
|
||||||
message = f"{errormsg[0]}\n```py\n{error[-1800:]}\n```\n Contact <@{self.bot.owner_id}> if the error persists"
|
message = f"{errormsg[0]}\n```py\n{error[-1800:]}\n```\n Contact <@{self.bot.owner_id}> if the error persists"
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue