public static CommandError IncompleteComponent(string key, ComponentArgument component)
 {
     return(CommandError.InvalidChatComponent($"A {key} component needs at least {component.StringifyChildrenKeys()}"));
 }
 public static CommandError UnknownComponent(IJsonArgument json)
 {
     return(CommandError.InvalidChatComponent($"Don't know how to turn {json.AsJson()} into a component"));
 }
 public static CommandError EmptyComponent()
 {
     return(CommandError.InvalidChatComponent($"Empty array"));
 }
 public static CommandError InvalidComponentArray(string key, JsonArgumentType expected, JsonArgumentType received)
 {
     return(CommandError.InvalidChatComponent($"Expected values in {key} array to be {expected.GetDisplayName()}, was {received.GetDisplayName()}"));
 }
Ejemplo n.º 5
0
 public static CommandError EndOfInput()
 {
     return(CommandError.InvalidChatComponent($"End of input"));
 }
Ejemplo n.º 6
0
 public static CommandError MalformedJson()
 {
     return(CommandError.InvalidChatComponent($"Malformed JSON"));
 }
Ejemplo n.º 7
0
 public static CommandError ExpectedNameValueSeparator()
 {
     return(CommandError.InvalidChatComponent($"Expected '{NAME_VALUE_SEPARATOR}'"));
 }
Ejemplo n.º 8
0
 public static CommandError UnterminatedString()
 {
     return(CommandError.InvalidChatComponent($"Unterminated string"));
 }
Ejemplo n.º 9
0
 public static CommandError InvalidEscapeSequence()
 {
     return(CommandError.InvalidChatComponent($"Invalid escape sequence"));
 }
Ejemplo n.º 10
0
 public static CommandError InvalidUnicodeCharacter(string unicode)
 {
     return(CommandError.InvalidChatComponent($"{ESCAPE_CHARACTER}{UNICODE_CHARACTER}{unicode}"));
 }
Ejemplo n.º 11
0
 public static CommandError UnterminatedEscapeSequence()
 {
     return(CommandError.InvalidChatComponent($"Unterminated escape sequence"));
 }