mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-11 08:23:15 +03:00
this commit is illegal
This commit is contained in:
parent
07e8784d2e
commit
e0161037bb
8 changed files with 63 additions and 3 deletions
|
@ -21,9 +21,20 @@ public class GuildOption<T> : IGuildOption
|
|||
|
||||
public string Name { get; }
|
||||
|
||||
public virtual string Value(JsonNode settings)
|
||||
{
|
||||
return Get(settings).ToString() ?? throw new InvalidOperationException();
|
||||
}
|
||||
|
||||
public virtual string Display(JsonNode settings)
|
||||
{
|
||||
return Markdown.InlineCode(Get(settings).ToString() ?? throw new InvalidOperationException());
|
||||
return Markdown.InlineCode(Value(settings));
|
||||
}
|
||||
|
||||
public virtual Result ValueEquals(JsonNode settings, string value, out bool equals)
|
||||
{
|
||||
equals = Value(settings).Equals(value);
|
||||
return Result.Success;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue