discordx-ts / discordx

🤖 Create a discord bot with TypeScript and Decorators!
https://discordx.js.org
Apache License 2.0
607 stars 50 forks source link

refactor: add test for duplicate command groups #868

Closed Senexis closed 1 year ago

Senexis commented 1 year ago

This pull request adds a currently failing test to demonstrate that duplicate subgroups are currently going wrong. This does not have to be merged, this is mostly to provide a failing test for the issue I'm having.

With this added logic, the library should generate the following:

/test-x m
/test-x n
/test-x add y
/test-x add x
/test-y o
/test-y p
/test-y add y
/test-y add z

However at the time of the pull request the following is produced:

/test-x m
/test-x n
/test-x add z
/test-x add y
/test-x add y
/test-x add x
/test-y o
/test-y p

Package