mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 06:47:56 +00:00
Various fixes and improvements
This commit is contained in:
parent
d702d8c9b6
commit
9e251352c7
11 changed files with 168 additions and 36 deletions
|
|
@ -103,7 +103,7 @@ namespace PluralKit.Bot
|
|||
var input = ctx.PeekArgument();
|
||||
|
||||
await using var conn = await ctx.Database.Obtain();
|
||||
if (await conn.QueryGroupByName(input) is {} byName)
|
||||
if (ctx.System != null && await conn.QueryGroupByName(ctx.System.Id, input) is {} byName)
|
||||
return byName;
|
||||
if (await conn.QueryGroupByHid(input) is {} byHid)
|
||||
return byHid;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue