aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/error_handler.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-05-10 09:35:48 -0400
committerGravatar ToxicKidz <[email protected]>2021-05-10 09:35:48 -0400
commitb17a60a83edc98405e75ae84de23bbd1c7f4bf6c (patch)
tree679740eeaaec9edab52c479636b26201f7d8a4db /bot/exts/evergreen/error_handler.py
parentchore: ctx.message.author -> ctx.author (diff)
chore: Use ctx instead of ctx.channel
Diffstat (limited to 'bot/exts/evergreen/error_handler.py')
-rw-r--r--bot/exts/evergreen/error_handler.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/bot/exts/evergreen/error_handler.py b/bot/exts/evergreen/error_handler.py
index faaf1386..de8e53d0 100644
--- a/bot/exts/evergreen/error_handler.py
+++ b/bot/exts/evergreen/error_handler.py
@@ -125,10 +125,7 @@ class CommandErrorHandler(commands.Cog):
scope.set_extra("full_message", ctx.message.content)
if ctx.guild is not None:
- scope.set_extra(
- "jump_to",
- f"https://discordapp.com/channels/{ctx.guild.id}/{ctx.channel.id}/{ctx.message.id}"
- )
+ scope.set_extra("jump_to", ctx.message.jump_url)
log.exception(f"Unhandled command error: {str(error)}", exc_info=error)