mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 05:47:53 +00:00
Add "clear" subcommand in addition to flags
This commit is contained in:
parent
f03b4683f7
commit
bcc9659117
1 changed files with 3 additions and 3 deletions
|
|
@ -38,7 +38,7 @@ namespace PluralKit.Bot
|
|||
public async Task Description(Context ctx) {
|
||||
ctx.CheckSystem();
|
||||
|
||||
if (ctx.MatchFlag("c", "clear"))
|
||||
if (ctx.MatchFlag("c", "clear") || ctx.Match("clear"))
|
||||
{
|
||||
ctx.System.Description = null;
|
||||
await _data.SaveSystem(ctx.System);
|
||||
|
|
@ -73,7 +73,7 @@ namespace PluralKit.Bot
|
|||
{
|
||||
ctx.CheckSystem();
|
||||
|
||||
if (ctx.MatchFlag("c", "clear"))
|
||||
if (ctx.MatchFlag("c", "clear") || ctx.Match("clear"))
|
||||
{
|
||||
ctx.System.Tag = null;
|
||||
await _data.SaveSystem(ctx.System);
|
||||
|
|
@ -190,7 +190,7 @@ namespace PluralKit.Bot
|
|||
{
|
||||
if (ctx.System == null) throw Errors.NoSystemError;
|
||||
|
||||
if (ctx.MatchFlag("c", "clear"))
|
||||
if (ctx.MatchFlag("c", "clear") || ctx.Match("clear"))
|
||||
{
|
||||
ctx.System.UiTz = "UTC";
|
||||
await _data.SaveSystem(ctx.System);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue