aniket091 / Gamecord

Discord Gamecord is a powerful npm package with a collection of minigames for your discord bot :)
https://discord-gamecord.js.org/
MIT License
101 stars 37 forks source link

[Feature Request] Support for interaction.locale #23

Open falcao-g opened 1 year ago

falcao-g commented 1 year ago

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 :)