Subcommand Preconditions Support
I've got the below code to create a command with subcommands and preconditions in ESM JS. My issue is that no matter what I seem to do, and I've had a look on the docs and had a look at the repo Favna linked here https://discord.com/channels/737141877803057244/1143510279024545864/1143541634248740955 , the preconditions on the subcommands never seem to be acknowledged, either in the precondition or the commands args.
Logging the commands args.command as above (using '.wr i') yields the following
Presumably the subcommand preconditions just aren't registered as per the
Map(0) {}
but I'm unsure what I'm doing wrong. Any help would be much appreciated.8 Replies
Are you on the latest PR version that includes it?
What do you mean by PR?
If by PR you mean npm package version then yes Iām on subcommands version 4.1.0
it was released to npm @Ararou, subscribe to #Announcements by getting the role from <id:customize>
ah
Oh I made an oopsie
ill release it soon, for now you can add
"type": "method"
to your subcommands https://github.com/sapphiredev/plugins/commit/6007a23926cad34e15dd72d58fec90bb858ae6c1
I want to include 3 other refactors for the repo (1 which is also precondition related for subcommands) so give us (the devs) a couple of days at the leastAh excellent.
All good. Thankyou very much :)
Fixed in v4.1.1 @solaris9uk
Thankyou :)