messageTags: Fix duplicate entries & replies (#922)
Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
parent
dac9cad873
commit
9c929a4d98
|
@ -111,6 +111,7 @@ function registerSubCommands(cmd: Command, plugin: string) {
|
||||||
...o,
|
...o,
|
||||||
type: ApplicationCommandType.CHAT_INPUT,
|
type: ApplicationCommandType.CHAT_INPUT,
|
||||||
name: `${cmd.name} ${o.name}`,
|
name: `${cmd.name} ${o.name}`,
|
||||||
|
id: `${o.name}-${cmd.id}`,
|
||||||
displayName: `${cmd.name} ${o.name}`,
|
displayName: `${cmd.name} ${o.name}`,
|
||||||
subCommandPath: [{
|
subCommandPath: [{
|
||||||
name: o.name,
|
name: o.name,
|
||||||
|
|
|
@ -234,12 +234,15 @@ export default definePlugin({
|
||||||
});
|
});
|
||||||
break; // end 'preview'
|
break; // end 'preview'
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return sendBotMessage(ctx.channel.id, {
|
default: {
|
||||||
|
sendBotMessage(ctx.channel.id, {
|
||||||
author,
|
author,
|
||||||
content: "Invalid sub-command"
|
content: "Invalid sub-command"
|
||||||
});
|
});
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue