mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Add switch deletion command
This commit is contained in:
parent
7e9b7dcc98
commit
d109ca7b57
4 changed files with 47 additions and 6 deletions
|
|
@ -203,5 +203,10 @@ namespace PluralKit {
|
|||
await _connection.ExecuteAsync("update switches set timestamp = @Time where id = @Id",
|
||||
new {Time = time, Id = sw.Id});
|
||||
}
|
||||
|
||||
public async Task DeleteSwitch(PKSwitch sw)
|
||||
{
|
||||
await _connection.ExecuteAsync("delete from switches where id = @Id", new {Id = sw.Id});
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue