mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 22:07:55 +00:00
Merge pull request #247 from dev-kittens/tweak/group-dn
Add looking up group by display name
This commit is contained in:
commit
90b2fcfdd4
4 changed files with 9 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue