mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat: implement system delete command
This commit is contained in:
parent
9e74835e4b
commit
047bdd870d
4 changed files with 19 additions and 12 deletions
|
|
@ -774,10 +774,9 @@ public class SystemEdit
|
|||
: ctx.Reply(msg));
|
||||
}
|
||||
|
||||
public async Task Delete(Context ctx, PKSystem target)
|
||||
public async Task Delete(Context ctx, PKSystem target, bool noExport)
|
||||
{
|
||||
ctx.CheckSystem().CheckOwnSystem(target);
|
||||
var noExport = ctx.MatchFlag("ne", "no-export");
|
||||
|
||||
var warnMsg = $"{Emojis.Warn} Are you sure you want to delete your system? If so, reply to this message with your system's ID (`{target.DisplayHid(ctx.Config)}`).\n";
|
||||
if (!noExport)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue