Merge pull request #247 from dev-kittens/tweak/group-dn

Add looking up group by display name
This commit is contained in:
Astrid 2020-11-15 13:15:29 +01:00 committed by GitHub
commit 90b2fcfdd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;
}