Skip to content

Commit

Permalink
æ
Browse files Browse the repository at this point in the history
  • Loading branch information
mctaylors committed Jul 20, 2024
1 parent 2c2bbfd commit cc3167b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TeamOctolings.Octobot/Data/Options/GuildOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public GuildOption(string name, T defaultValue)

public string Name { get; }

public virtual string Value(JsonNode settings)
protected virtual string Value(JsonNode settings)
{
return Get(settings).ToString() ?? throw new InvalidOperationException();
}
Expand Down
2 changes: 1 addition & 1 deletion TeamOctolings.Octobot/Data/Options/LanguageOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed class LanguageOption : GuildOption<CultureInfo>

public LanguageOption(string name, string defaultValue) : base(name, CultureInfoCache[defaultValue]) { }

public override string Value(JsonNode settings)
protected override string Value(JsonNode settings)
{
return settings[Name]?.GetValue<string>() ?? "en";
}
Expand Down

0 comments on commit cc3167b

Please sign in to comment.