discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

Guild object in interactions does not contain `preferred_locale`

Open freya022 opened this issue 2 weeks ago • 0 comments

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

  1. Run a slash command
  2. Look at the guild object provided in the interaction
  3. See there is no preferred_locale, but locale 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

image

Client and System Information

JDA 5.0.0-beta.24 (c0cff23e36)

freya022 avatar Jun 17 '24 10:06 freya022