discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
5.91k stars 1.25k forks source link

[Feature Request] ~ Guild Locale Without OAuth #1322

Closed Skillz4Killz closed 4 years ago

Skillz4Killz commented 4 years ago

Hello 👋

Could it be possible to create a locale setting for server owners to expose to bots?

My bot(and many others) support i18n and it would be really nice to be able to provide the translated responses to the users without them having to learn English and use the command to set the bot's language. Sometimes, people really have 0 understanding of English and it's not so easy for them to understand "oh I need to use this command to change the language". I had a server who had my bot but was rarely using it. One day a friend showed me the server and I was curious why they weren't using the bot. I then discovered they didn't know how to change the language and the bot just remained there barely used. But after changing it, the server blew up and the usage increased to 5K commands a day from that single server alone.

I can understand if there is a restriction to prevent exposing users locale. However, a setting on the guilds that can be set by server owners which could allow bots to be able to access would be wonderful.

Relevant Issue: #962 suggests that it might be considered in the future for user locale. I think it could be easier to expose a server wide locale.

Thank You :)

EDIT: #1074 mentions that this does exist but only for Verified servers and would eventually come to all servers. Any update on this?

advaith1 commented 4 years ago

That would be useful but I doubt Discord would add a server setting only for bot use, the language setting in Discovery settings has a purpose in the client:

Discord will prioritize this server in search and recommendations to users who speak the selected language.

msciotti commented 4 years ago

The preferred_locale is specifically for public, discoverable guilds so that users can find guilds in our Server Discovery that match their locale of choice. Small guilds don't actually have a way of setting it.

I don't believe there's any current plans to bring this to private guilds, as the UX use case doesn't really pertain there. But, I could be wrong. @rickling or @jonzlin95 ?

msciotti commented 4 years ago

Talked to Jon about this, we may roll this out to small private guilds as well if they find it valuable. If we do, you'll just start seeing it on the guild object like it currently is for public guilds.

(Gonna close this because the feature does exist and it's more on a broader rollout than actual API changes.)

liampwll commented 4 years ago

Seems like that should stay as a setting controlled by bot commands, it creates an expectation that all bots will be controlled by that setting and all bots will cover all locales.

As for server owners not being able to change the language, that seems like a documentation issue, how did they find the link to add the bot but not find instructions in their language?