mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 00:30:11 +00:00
Migrate more commands to "MatchClear"
This commit is contained in:
parent
17fbdf553c
commit
1449234a84
3 changed files with 11 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue