Skip to content

Commit

Permalink
feat: Improve Local getter
Browse files Browse the repository at this point in the history
  • Loading branch information
LeadcodeDev committed Mar 26, 2023
1 parent 39ca4b8 commit 00f2cf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/api/guilds/guild.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class Guild {
ImageFormater? get banner => _banner;
int get premiumTier => _premiumTier;
int get premiumSubscriptionCount => _premiumSubscriptionCount;
String get preferredLocale => _preferredLocale;
Locale get preferredLocale => Locale.values.firstWhere((lang) => lang.locale == _preferredLocale);
Snowflake? get publicUpdatesChannelId => _publicUpdatesChannelId;
int get maxVideoChannelUsers => _maxVideoChannelUsers;
int? get approximateMemberCount => _approximateMemberCount;
Expand Down

0 comments on commit 00f2cf6

Please sign in to comment.