mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 00:30:11 +00:00
23 lines
505 B
Text
23 lines
505 B
Text
namespace commands {
|
|
CommandResult parse_command(string prefix, string input);
|
|
};
|
|
[Enum]
|
|
interface CommandResult {
|
|
Ok(ParsedCommand command);
|
|
Err(string error);
|
|
};
|
|
[Enum]
|
|
interface Parameter {
|
|
MemberRef(string member);
|
|
SystemRef(string system);
|
|
MemberPrivacyTarget(string target);
|
|
PrivacyLevel(string level);
|
|
OpaqueString(string raw);
|
|
Toggle(boolean toggle);
|
|
Reset();
|
|
};
|
|
dictionary ParsedCommand {
|
|
string command_ref;
|
|
record<string, Parameter> params;
|
|
record<string, Parameter?> flags;
|
|
};
|