mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Add looking up group by displayname; document this
This commit is contained in:
parent
537783dd96
commit
71461b3163
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