Add looking up group by displayname; document this

This commit is contained in:
spiral 2020-11-14 10:42:51 -05:00
parent 537783dd96
commit 71461b3163
No known key found for this signature in database
GPG key ID: 00C26F208D3FCCAB
4 changed files with 9 additions and 3 deletions

View file

@ -110,6 +110,8 @@ namespace PluralKit.Bot
return byName;
if (await ctx.Repository.GetGroupByHid(conn, input) is {} byHid)
return byHid;
if (await ctx.Repository.GetGroupByDisplayName(conn, ctx.System.Id, input) is {} byDisplayName)
return byDisplayName;
return null;
}