aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
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;
+ }
+ }
}
}
]