diff options
| author | 2020-02-21 18:01:35 +0000 | |
|---|---|---|
| committer | 2020-02-21 18:01:35 +0000 | |
| commit | 969f1eea95a9bd44de65bd08b8a551538b7b6581 (patch) | |
| tree | 5ed27ae555e729ef00f8328ac2d00394d02ceebd | |
| parent | Use push_scope instead of configure_scope (diff) | |
Attach jump_to url to the event
| -rw-r--r-- | bot/cogs/error_handler.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bot/cogs/error_handler.py b/bot/cogs/error_handler.py index 589448b9a..0abb7e521 100644 --- a/bot/cogs/error_handler.py +++ b/bot/cogs/error_handler.py @@ -157,8 +157,16 @@ class ErrorHandler(Cog): scope.set_tag("command", ctx.command.qualified_name) scope.set_tag("message_id", ctx.message.id) + scope.set_tag("channel_id", ctx.channel.id) + 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}" + ) + log.error(f"Error executing command invoked by {ctx.message.author}: {ctx.message.content}", exc_info=e) |