Migrate more commands to "MatchClear"

This commit is contained in:
Ske
2020-07-08 00:00:23 +02:00
parent 17fbdf553c
commit 1449234a84
3 changed files with 11 additions and 14 deletions

View File

@@ -45,7 +45,7 @@ namespace PluralKit.Bot
}
// "Sub"command: clear flag
if (ctx.Match("clear", "purge", "clean", "removeall") || ctx.MatchFlag("c", "clear"))
if (ctx.MatchClear())
{
// If we already have multiple tags, this would clear everything, so prompt that
if (target.ProxyTags.Count > 1)