Co-authored-by: V <vendicated@riseup.net>
@ -111,6 +111,7 @@ function registerSubCommands(cmd: Command, plugin: string) {
...o,
type: ApplicationCommandType.CHAT_INPUT,
name: `${cmd.name} ${o.name}`,
id: `${o.name}-${cmd.id}`,
displayName: `${cmd.name} ${o.name}`,
subCommandPath: [{
name: o.name,
@ -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, {
break;
]