mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Add group delete command
This commit is contained in:
parent
f504e16543
commit
cedb050b8a
3 changed files with 40 additions and 15 deletions
|
|
@ -75,6 +75,9 @@ namespace PluralKit.Core
|
|||
.Build("returning *");
|
||||
return conn.QueryFirstAsync<PKGroup>(query, pms);
|
||||
}
|
||||
|
||||
public static Task DeleteGroup(this IPKConnection conn, GroupId group) =>
|
||||
conn.ExecuteAsync("delete from groups where id = @Id", new {Id = group });
|
||||
|
||||
public static async Task AddMembersToGroup(this IPKConnection conn, GroupId group, IEnumerable<MemberId> members)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue