From c8bc47812686a98538c43f9ba97861bba37f1e2c Mon Sep 17 00:00:00 2001 From: Dragory Date: Sat, 22 Dec 2018 16:01:18 +0200 Subject: [PATCH] !tag_delete -> !tag delete --- src/plugins/Tags.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/plugins/Tags.ts b/src/plugins/Tags.ts index 929c1439..a2ab7cf5 100644 --- a/src/plugins/Tags.ts +++ b/src/plugins/Tags.ts @@ -32,16 +32,7 @@ export class TagsPlugin extends Plugin { this.tags = GuildTags.getInstance(this.guildId); } - @d.command("tag", " ") - @d.permission("create") - async tagCmd(msg: Message, args: { tag: string; body: string }) { - await this.tags.createOrUpdate(args.tag, args.body, msg.author.id); - - const prefix = this.configValue("prefix"); - msg.channel.createMessage(successMessage(`Tag set! Use it with: \`${prefix}${args.tag}\``)); - } - - @d.command("tag_delete", "") + @d.command("tag delete", "") @d.permission("create") async deleteTagCmd(msg: Message, args: { tag: string }) { const tag = await this.tags.find(args.tag); @@ -54,6 +45,15 @@ export class TagsPlugin extends Plugin { msg.channel.createMessage(successMessage("Tag deleted!")); } + @d.command("tag", " ") + @d.permission("create") + async tagCmd(msg: Message, args: { tag: string; body: string }) { + await this.tags.createOrUpdate(args.tag, args.body, msg.author.id); + + const prefix = this.configValue("prefix"); + msg.channel.createMessage(successMessage(`Tag set! Use it with: \`${prefix}${args.tag}\``)); + } + @d.event("messageCreate") @d.permission("use") async onMessageCreate(msg: Message) {