refactor: only pass shard ID to event handlers instead of full shard object
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user