Subcommand Aliases

How can I add aliases to subcommands? Is it not possible?
3 Replies
Favna
Favna2mo ago
Well first of all aliases only apply to message commands, aliases will never work for chat input commands because that's completely unnecessary as it means you're registering the same command twice. As for aliases for message commands, you just map it twice:
{
name: 'add',
messageRun: 'messageAdd'
},
{
name: 'alsoAdd',
messageRun: 'messageAdd'
},
{
name: 'add',
messageRun: 'messageAdd'
},
{
name: 'alsoAdd',
messageRun: 'messageAdd'
},
mallusrgreat
mallusrgreat2mo ago
yeah i was talking about message commands, its a bit annoying to just 'map it twice' i feel like
Favna
Favna2mo ago
not really tbh, you can do it in a single line of code. Besides, chat input commands are the way to go anyway. Message commands are legacy.