Add more aliases to proxy add/remove

This commit is contained in:
Ske 2020-02-04 18:16:45 +01:00
parent f27e864731
commit 565d166c68

View File

@ -62,7 +62,7 @@ namespace PluralKit.Bot.Commands
await ctx.Reply($"{Emojis.Success} Proxy tags cleared."); await ctx.Reply($"{Emojis.Success} Proxy tags cleared.");
} }
// Subcommand: "add" // Subcommand: "add"
else if (ctx.Match("add")) else if (ctx.Match("add", "append"))
{ {
if (!ctx.HasNext()) throw new PKSyntaxError("You must pass an example proxy to add (eg. `[text]` or `J:text`)."); if (!ctx.HasNext()) throw new PKSyntaxError("You must pass an example proxy to add (eg. `[text]` or `J:text`).");
@ -82,7 +82,7 @@ namespace PluralKit.Bot.Commands
await ctx.Reply($"{Emojis.Success} Added proxy tags `{tagToAdd.ProxyString.SanitizeMentions()}`."); await ctx.Reply($"{Emojis.Success} Added proxy tags `{tagToAdd.ProxyString.SanitizeMentions()}`.");
} }
// Subcommand: "remove" // Subcommand: "remove"
else if (ctx.Match("remove")) else if (ctx.Match("remove", "delete"))
{ {
if (!ctx.HasNext()) throw new PKSyntaxError("You must pass a proxy tag to remove (eg. `[text]` or `J:text`)."); if (!ctx.HasNext()) throw new PKSyntaxError("You must pass a proxy tag to remove (eg. `[text]` or `J:text`).");