feat: implement system delete command

This commit is contained in:
dusk 2025-04-04 04:47:00 +09:00
parent 9e74835e4b
commit 047bdd870d
No known key found for this signature in database
4 changed files with 19 additions and 12 deletions

View file

@ -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)