From 6e83b6c86561f5a0433b70523428d0887d73687a Mon Sep 17 00:00:00 2001 From: tumGER <25822956+tumGER@users.noreply.github.com> Date: Sun, 23 Dec 2018 17:51:21 +0100 Subject: [PATCH] just use hex() instead --- cogs/err.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/err.py b/cogs/err.py index eaad4b4..866813e 100644 --- a/cogs/err.py +++ b/cogs/err.py @@ -99,7 +99,7 @@ class Err: err_description = "It seems like your error code is unknown. You should report relevant details to <@141532589725974528> so it can be added to the bot." # Make a nice Embed out of it - embed = discord.Embed(title="{} / 0x{}".format(str_errcode, errcode), url="https://www.youtube.com/watch?v=x3yXlomPCmU", description=err_description) + embed = discord.Embed(title="{} / {}".format(str_errcode, hex(errcode)), url="https://www.youtube.com/watch?v=x3yXlomPCmU", description=err_description) embed.set_footer(text="Console: Switch") embed.add_field(name="Module", value="{} ({})".format(err_module, module), inline=True) embed.add_field(name="Description", value=desc, inline=True)