Allow to get user locale not only in users/@me but in users/{user:id} #6331
Replies: 3 comments
-
Text commands aren't supported and pretty much never have been. Your best bet is slash commands. |
Beta Was this translation helpful? Give feedback.
-
Probably to protect privacy, /users/@me is mainly an oauth2 endpoint which requires an access token with the identify scope to access the authorizing user's information It's on interactions because only users can trigger them first, it's not freely harvestable |
Beta Was this translation helpful? Give feedback.
-
OAuth gives you access to data for the account of whichever user has authorized the application (it's meant for websites). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why is it possible to get a user's locale only in endpoint
users/@me
? Bots can't interact #928 #3988 with this endpoint because for this you need to pass OAuth 2.0But even if you do OAuth 2.0, you can only interact with the developer account.
Getting locale in endpoint
users/{user:id}
would be useful for bot developers to use localization (ex. i18n) for each user.P.S. I know that the locale field can be obtained in slash commands, but what about those who still use regular text commands?
Beta Was this translation helpful? Give feedback.
All reactions