From 9c929a4d989a0a304900f02e7e7214b095d96a2f Mon Sep 17 00:00:00 2001 From: Mufaro <81554673+xMufaro@users.noreply.github.com> Date: Mon, 17 Apr 2023 01:44:33 +0200 Subject: messageTags: Fix duplicate entries & replies (#922) Co-authored-by: V --- src/plugins/messageTags.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/messageTags.ts b/src/plugins/messageTags.ts index 490edc3..02d1e52 100644 --- a/src/plugins/messageTags.ts +++ b/src/plugins/messageTags.ts @@ -234,12 +234,15 @@ export default definePlugin({ }); break; // end 'preview' } - } - return sendBotMessage(ctx.channel.id, { - author, - content: "Invalid sub-command" - }); + default: { + sendBotMessage(ctx.channel.id, { + author, + content: "Invalid sub-command" + }); + break; + } + } } } ] -- cgit