mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-09 23:37:54 +00:00
refactor: only pass shard ID to event handlers instead of full shard object
This commit is contained in:
parent
bf80dd0988
commit
50a24f03a7
13 changed files with 74 additions and 70 deletions
|
|
@ -138,7 +138,7 @@ public class ShardInfoService
|
|||
}
|
||||
}
|
||||
|
||||
public ShardInfo GetShardInfo(Shard shard) => _shardInfo[shard.ShardId];
|
||||
public ShardInfo GetShardInfo(int shardId) => _shardInfo[shardId];
|
||||
|
||||
public class ShardInfo
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue