discord-api-docs
discord-api-docs copied to clipboard
Guild object in interactions does not contain `preferred_locale`
Description
When using an interaction, the Guild object does not contain the preferred_locale
property, but instead has locale
.
Originally reported at https://github.com/discord-jda/JDA/pull/2633#issuecomment-2172787976
Steps to Reproduce
- Run a slash command
- Look at the guild object provided in the interaction
- See there is no
preferred_locale
, butlocale
instead
Expected Behavior
The Guild object should have the preferred_locale
property, which is the same as the one used in GUILD_CREATE
gateway events, and is documented
Current Behavior
It uses a locale
property instead
Screenshots/Videos
Client and System Information
JDA 5.0.0-beta.24 (c0cff23e36)