Subcommand wont get registered
Hey, I know it must be some little stupid thing I did wrong:
Im trying to create subcommands but while starting my bot I get the following error:
TypeError: Cannot read properties of undefined (reading 'parseConstructorPreConditionsRunIn')
I compared my code multiple times with the code of ofters and the docs, but I'm not seeing my mistake.![No description](https://cdn.answeroverflow.com/1174082482627416064/image.png)
Solution:Jump to solution
Update your dependencies, framework specifically. The method is a static method on Command class.
4 Replies
Solution
Update your dependencies, framework specifically. The method is a static method on Command class.
Hm... now ive updated everything and the @ApplyOptions decorator is broken...
In tsconfig, allow experimental decorators thingy
Oh, alr. Thanks for the help :3