Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guild object in interactions does not contain preferred_locale #6938

Open
freya022 opened this issue Jun 17, 2024 · 0 comments
Open

Guild object in interactions does not contain preferred_locale #6938

freya022 opened this issue Jun 17, 2024 · 0 comments
Labels
bug slash commands synced Synced to internal tracker

Comments

@freya022
Copy link

Description

When using an interaction, the Guild object does not contain the preferred_locale property, but instead has locale.

Originally reported at discord-jda/JDA#2633 (comment)

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 added a commit to freya022/JDA that referenced this issue Jun 17, 2024
@lmle lmle added the synced Synced to internal tracker label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug slash commands synced Synced to internal tracker
Projects
None yet
Development

No branches or pull requests

2 participants