guide
guide copied to clipboard
feat(slashcommands): add JSON objects along with builders
Please describe the changes this PR makes and why it should be merged:
#1122 Adding JSON objects as an alternative option to builders will allow advanced developers to ~~copy paste~~ understand code quickly and something that is more native to them.
One question is whether the builders page should also have the JSON objects for direct comparison with builders or should they not have them as the page is specifically made for builders?
I also disagree with having this in the first place, we don't need a raw json example for everything, that'd be ass to maintain and just unneeded stuff cluttering the guide imo. What I would rather do is recommend builders and link to the api docs and perhaps mention discord-api-types for typescript users. In the case of the "advanced users", that should be enough for them.
Switched to enums
This will need to be revisited after the semantic and structural rewrite that's currently in progress
It's probably better to remake this pr entirely (or rethink the idea as a whole) as the codebase has changed a lot.