mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-18 16:03:36 +03:00
æ
This commit is contained in:
parent
2c2bbfd8e4
commit
cc3167bf49
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ public class GuildOption<T> : IGuildOption
|
|||
|
||||
public string Name { get; }
|
||||
|
||||
public virtual string Value(JsonNode settings)
|
||||
protected virtual string Value(JsonNode settings)
|
||||
{
|
||||
return Get(settings).ToString() ?? throw new InvalidOperationException();
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue