Skip to content

Conversation

@Nonanti
Copy link
Contributor

@Nonanti Nonanti commented Aug 31, 2025

Summary

  • Fixed incorrect documentation that stated preferred_locale is only available for guilds with the "DISCOVERABLE" feature
  • Updated to correctly state it's available for guilds with the "COMMUNITY" feature

Details

The preferred_locale field in both Guild and PartialGuild structs had incorrect documentation. According to Discord's documentation and user reports, this field is available for all guilds with the COMMUNITY feature enabled, not just DISCOVERABLE guilds.

Fixes #3363

Test Plan

  • Documentation builds successfully
  • No functional changes, only documentation updates

The preferred_locale field is available for guilds with the COMMUNITY
feature, not the DISCOVERABLE feature. This commit corrects the
documentation in both Guild and PartialGuild structs.

Fixes serenity-rs#3363
@github-actions github-actions bot added the model Related to the `model` module. label Aug 31, 2025
@arqunis arqunis added enhancement An improvement to Serenity. docs Related to documentation. labels Sep 6, 2025
@arqunis arqunis merged commit 6b940c2 into serenity-rs:current Sep 6, 2025
20 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Related to documentation. enhancement An improvement to Serenity. model Related to the `model` module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mistake in documentation: Guild::preferred_locale is available for guilds with COMMUNITY feature.

2 participants