Merge pull request #215 from dev-kittens/patch-1

Add flags to switch delete all
This commit is contained in:
Astrid 2020-08-23 20:27:07 +02:00 committed by GitHub
commit 04960067c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ namespace PluralKit.Bot
{ {
ctx.CheckSystem(); ctx.CheckSystem();
if (ctx.Match("all", "clear")) if (ctx.Match("all", "clear") || ctx.MatchFlag("all", "clear"))
{ {
// Subcommand: "delete all" // Subcommand: "delete all"
var purgeMsg = $"{Emojis.Warn} This will delete *all registered switches* in your system. Are you sure you want to proceed?"; var purgeMsg = $"{Emojis.Warn} This will delete *all registered switches* in your system. Are you sure you want to proceed?";