mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Couple more slight tweaks :)
This commit is contained in:
parent
1bb5d203df
commit
10c01da39b
8 changed files with 37 additions and 22 deletions
|
|
@ -34,10 +34,7 @@ namespace PluralKit.Core
|
|||
|
||||
public static Task<PKGroup?> QueryGroupByHid(this IPKConnection conn, string hid) =>
|
||||
conn.QueryFirstOrDefaultAsync<PKGroup?>("select * from groups where hid = @hid", new {hid = hid.ToLowerInvariant()});
|
||||
|
||||
public static Task<IEnumerable<PKGroup>> QueryGroupsInSystem(this IPKConnection conn, SystemId system) =>
|
||||
conn.QueryAsync<PKGroup>("select * from groups where system = @System", new {System = system});
|
||||
|
||||
|
||||
public static Task<int> QueryGroupMemberCount(this IPKConnection conn, GroupId id,
|
||||
PrivacyLevel? privacyFilter = null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue