Issues implementing subcommands
Hey Everyone, I am struggling and new to implementing subcommands and trying to doesn't register.
https://hastebin.com/share/abitotekom.javascript
The following is what I have, hope someone can help.
Hastebin
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
6 Replies
Your code looks COMPLETELY different to what the guide shows you
https://www.sapphirejs.dev/docs/Guide/plugins/Subcommands/getting-started
Follow that guide ^
You don't register subcommands individually, you just use
addSubCommand
in the registryYou also don't use
this.subCommands
after the super call, you include it in the super call.^
And yeah follow the guide. You need to use the plugin.
Oh he weren't using the plugin either? That I overlooked, I was sidetracked by the structure / registry