aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorMufaro <81554673+xMufaro@users.noreply.github.com>2023-04-17 01:44:33 +0200
committerGitHub <noreply@github.com>2023-04-16 23:44:33 +0000
commit9c929a4d989a0a304900f02e7e7214b095d96a2f (patch)
tree867bfd7c283a6631451aaf6d980047ed3f419d3a /src/plugins
parentdac9cad8736b93f7d4f95fc178040aa679563cdb (diff)
downloadVencord-9c929a4d989a0a304900f02e7e7214b095d96a2f.tar.gz
Vencord-9c929a4d989a0a304900f02e7e7214b095d96a2f.tar.bz2
Vencord-9c929a4d989a0a304900f02e7e7214b095d96a2f.zip
messageTags: Fix duplicate entries & replies (#922)
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/messageTags.ts13
1 files changed, 8 insertions, 5 deletions
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;
+ }
+ }
}
}
]