Get User language
I wanted to ask if its possible to get User language. I want to create a welcome Bot. And based from the User language, its should write the User a welcome message in his language. If there is no function to get user language, how should I do it?
4 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!That information is not available in that context directly.
The locale the user has set is only available from interactions.
I understand, so the user should choose his own language role and my bot can interact with that, right?
Discord will tell you the user’s current locale whenever they react with your bot through buttons or slash commands.