Skip to content

Commit 6b940c2

Browse files
authored
Fix documentation for (Partial)Guild::preferred_locale (#3413)
The `preferred_locale` field present on both `Guild` and `PartialGuild` incorrectly states that it is only available for guilds with the `DISCOVERABLE` feature. This fixes the documentation to mention that it is actually available to all guilds with the `COMMUNITY` feature. Fixes #3363
1 parent d11970f commit 6b940c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/model/guild/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ pub struct Guild {
188188
pub premium_tier: PremiumTier,
189189
/// The total number of users currently boosting this server.
190190
pub premium_subscription_count: Option<u64>,
191-
/// The preferred locale of this guild only set if guild has the "DISCOVERABLE" feature,
191+
/// The preferred locale of this guild only set if guild has the "COMMUNITY" feature,
192192
/// defaults to en-US.
193193
pub preferred_locale: String,
194194
/// The id of the channel where admins and moderators of Community guilds receive notices from

src/model/guild/partial_guild.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pub struct PartialGuild {
147147
pub premium_tier: PremiumTier,
148148
/// The total number of users currently boosting this server.
149149
pub premium_subscription_count: Option<u64>,
150-
/// The preferred locale of this guild only set if guild has the "DISCOVERABLE" feature,
150+
/// The preferred locale of this guild only set if guild has the "COMMUNITY" feature,
151151
/// defaults to en-US.
152152
pub preferred_locale: String,
153153
/// The id of the channel where admins and moderators of Community guilds receive notices from

0 commit comments

Comments
 (0)