refactor: only pass shard ID to event handlers instead of full shard object

This commit is contained in:
spiral 2022-01-14 18:39:03 -05:00
parent bf80dd0988
commit 50a24f03a7
No known key found for this signature in database
GPG key ID: A6059F0CA0E1BD31
13 changed files with 74 additions and 70 deletions

View file

@ -4,7 +4,7 @@ namespace PluralKit.Bot;
public interface IEventHandler<in T> where T : IGatewayEvent
{
Task Handle(Shard shard, T evt);
Task Handle(int shardId, T evt);
ulong? ErrorChannelFor(T evt, ulong userId) => null;
}