Handle imports from other systems/instances with different HIDs
This commit is contained in:
parent
5334975ab7
commit
951b089c97
@ -109,7 +109,7 @@ namespace PluralKit.Bot
|
||||
{
|
||||
PKMember match = null;
|
||||
if (membersByHid.TryGetValue(d.Id, out var matchByHid)) match = matchByHid; // Try to look up the member with the given ID
|
||||
else if (membersByName.TryGetValue(d.Id, out var matchByName)) match = matchByName; // Try with the name instead
|
||||
else if (membersByName.TryGetValue(d.Name, out var matchByName)) match = matchByName; // Try with the name instead
|
||||
|
||||
if (match != null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user