From b17a60a83edc98405e75ae84de23bbd1c7f4bf6c Mon Sep 17 00:00:00 2001 From: ToxicKidz Date: Mon, 10 May 2021 09:35:48 -0400 Subject: chore: Use ctx instead of ctx.channel --- bot/exts/evergreen/error_handler.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'bot/exts/evergreen/error_handler.py') 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) -- cgit v1.2.3