mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 23:07:54 +00:00
Properly associate trigger events with Sentry errors
This commit is contained in:
parent
606f48fdb5
commit
3f6a260fac
3 changed files with 198 additions and 88 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue