mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 17:50:13 +00:00
Handle imports from other systems/instances with different HIDs
This commit is contained in:
parent
5334975ab7
commit
951b089c97
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ namespace PluralKit.Bot
|
||||||
{
|
{
|
||||||
PKMember match = null;
|
PKMember match = null;
|
||||||
if (membersByHid.TryGetValue(d.Id, out var matchByHid)) match = matchByHid; // Try to look up the member with the given ID
|
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)
|
if (match != null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue