New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(ApplicationCommand): fix and improve localization docs #7804
Conversation
If this PR gets an approve, I'll do a backport for v13. |
I just tested this and it certainly sends back name_localized and description_localized when the header is set.
This was brought up internally and the consensus was that it shouldn't return localizations by default, because localization JSON can result in much larger json payloads. If you need to do something like diff commands you can specify the option as true in those situations. |
Show me how you did it then because I tested this many times and never received those fields
That's inconsistent with other methods but if a maintainer wants that removed I'll remove it. I'll wait for now |
I just did a get request to fetch all commands with my bot token in the header and the locale header set to the locale. |
Can't reproduce so unless someone else is able to and details how I'll keep these changes here. For reference I'm requesting all application commands without the with_localizations query parameter, a bot token and the X-Discord-Locale header set to "pt-BR" |
Hi, maintainer here. The behaviour and defaults of the method were chosen internally, and as such, we took part of it. IMO the code changes in this PR should be reverted, the docs changes look better, though. |
e8385ae
to
033bd20
Compare
I redid my tests and I'm now able to get the Localized properties so I have reverted the code changes and kept the documentation changes. Feel free to change the labels on this PR |
033bd20
to
39a2cd5
Compare
Please describe the changes this PR makes and why it should be merged:
This PR:
Locale
typedef with all the possible locales to make it easier to document them in various placesStatus and versioning classification: