guild.preferredLocale

I have a problem. The server owner (I) uses the russian language, but for some reason I get "en-US"
const locale = msg.guild.preferredLocale
console.log(locale)
const locale = msg.guild.preferredLocale
console.log(locale)
3 Replies
d.js toolkit
d.js toolkit14mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
d.js docs
d.js docs14mo ago
property Guild#preferredLocale The preferred locale of the guild, defaults to en-US
vlad vollar
vlad vollar14mo ago
So if guild isn’t community, locale be en-US?