Export Commands and Parameters

This is only loosely related to Sapphire, but I was wondering if there is an easy way to export a CSV or something that has the commands and parameters in it for documentation purposes. I have roughly a hundred commands and have never gotten around to doing any documentation, but I’m finding the need to write docs for them now. Is there an easy way to do this or does anyone have any ideas on how to best do it?
Solution:
Use this.container.stores.get('commands') to get a Map<string, Command> which can be turned into a Command[] then use a JSON to CSV converter library (or parse it out yourself)
Jump to solution
2 Replies
Solution
Favna
Favna8mo ago
Use this.container.stores.get('commands') to get a Map<string, Command> which can be turned into a Command[] then use a JSON to CSV converter library (or parse it out yourself)
the-philociraptor
the-philociraptorOP8mo ago
Thank you!
Want results from more Discord servers?
Add your server