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
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;
}