PluralKit/crates/commands/src/commands.udl

27 lines
479 B
Text
Raw Normal View History

2024-09-13 16:02:30 +09:00
namespace commands {
CommandResult parse_command(string input);
};
[Enum]
interface CommandResult {
Ok(ParsedCommand command);
Err(string error);
};
[Enum]
interface ParameterKind {
MemberRef();
SystemRef();
MemberPrivacyTarget();
PrivacyLevel();
OpaqueString();
};
dictionary Parameter {
string raw;
ParameterKind kind;
};
2024-09-13 16:02:30 +09:00
dictionary ParsedCommand {
string command_ref;
sequence<string> args;
record<string, Parameter> params;
2024-09-13 16:02:30 +09:00
record<string, string?> flags;
};