-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Get User Language #535
Comments
It is feasible. Not sure if we should expose another scope for this, or just have it be in the regular user scope. |
any update? |
It would be nice to have available without an oauth scope so it could be used to serve commands in a users language and localize formats. |
That would be convenient, but what if a user doesn't want a bot to know what language they use? Correct me if I'm wrong, but no user settings are currently exposed to bots. |
Surely the value could be null'd or default to |
Having it as part of the user scope seems to make the most sense, and as @tech6hutch mentioned - I don't think having it exposed without a scope is a great idea. It's not the most private information by any means, but it could cause users to be confused if the application/bot knows their language setting if they aren't familiar. Keeping it as a scope means the user would allow access explicitly vs. implicitly which should really be the case for any scope, even something simple like language. |
I personally like the idea of letting bots have it without a scope for localisation purposes. Perhaps allow an opt-out rather than making it opt-in, since most users won't care. |
@msciotti it OK, that now for users locale returning null? |
you can use interaction.locale if you use slash commands |
Hi!
It would be nice to know the user's language so we can provide content in user's language.
Thanks.
The text was updated successfully, but these errors were encountered: