Skip to content
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

[Feature Request] Support for interaction.locale #23

Open
falcao-g opened this issue Jun 25, 2023 · 0 comments
Open

[Feature Request] Support for interaction.locale #23

falcao-g opened this issue Jun 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@falcao-g
Copy link

Describe the solution you'd like
Hi, first of all i have to say that i love this repository

It would be really cool if gamecord had support for the interaction.locale property, this way the user could pass the interaction or just the locale as a option when starting the game along with a object with different locales, of course if the user doesn't want to use this system, they could just pass one message and it would work as it works now

Expected Behaviour
I want to be able to pass a "locale" argument to any game that has messages, along with a object containing different messages for various locales that discord supports, this way, if my user was using their discord in brazilian portuguese, for example, the code would get my message for the "pt-BR" locale, if there were no message for that locale, then it would default to the "en-US" message

Screenshots
image

Additional context
The discord guide has an article teaching how to use this system here, also if you want any help you can contact me because i implemented this in my discord bot, thanks for the work :)

@falcao-g falcao-g added the enhancement New feature or request label Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant