Properly associate trigger events with Sentry errors

This commit is contained in:
Ske
2019-08-09 12:47:46 +02:00
parent 606f48fdb5
commit 3f6a260fac
3 changed files with 198 additions and 88 deletions

View File

@@ -171,12 +171,14 @@ namespace PluralKit.Bot
public class PKCommandContext : ShardedCommandContext
{
public PKSystem SenderSystem { get; }
public IServiceProvider ServiceProvider { get; }
private object _entity;
public PKCommandContext(DiscordShardedClient client, SocketUserMessage msg, PKSystem system) : base(client, msg)
public PKCommandContext(DiscordShardedClient client, SocketUserMessage msg, PKSystem system, IServiceProvider serviceProvider) : base(client, msg)
{
SenderSystem = system;
ServiceProvider = serviceProvider;
}
public T GetContextEntity<T>() where T: class {