mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Add flags to switch delete all
This commit is contained in:
parent
616e490e42
commit
437808afce
1 changed files with 2 additions and 2 deletions
|
|
@ -107,7 +107,7 @@ namespace PluralKit.Bot
|
|||
{
|
||||
ctx.CheckSystem();
|
||||
|
||||
if (ctx.Match("all", "clear"))
|
||||
if (ctx.Match("all", "clear") || ctx.MatchFlag("all", "clear"))
|
||||
{
|
||||
// Subcommand: "delete all"
|
||||
var purgeMsg = $"{Emojis.Warn} This will delete *all registered switches* in your system. Are you sure you want to proceed?";
|
||||
|
|
@ -145,4 +145,4 @@ namespace PluralKit.Bot
|
|||
await ctx.Reply($"{Emojis.Success} Switch deleted.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue