40 lines
796 B
JSON
40 lines
796 B
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://git.eeqj.de/sneak/chat/schema/numerics/004.json",
|
|
"title": "004 RPL_MYINFO",
|
|
"description": "Server info (name, version, available modes). RFC 2812 \u00a75.1.",
|
|
"$ref": "../message.json",
|
|
"properties": {
|
|
"command": {
|
|
"const": "004"
|
|
},
|
|
"to": {
|
|
"type": "string"
|
|
},
|
|
"params": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"description": "[server_name, version, user_modes, channel_modes]."
|
|
}
|
|
},
|
|
"required": [
|
|
"command",
|
|
"to",
|
|
"params"
|
|
],
|
|
"examples": [
|
|
{
|
|
"command": "004",
|
|
"to": "alice",
|
|
"params": [
|
|
"chat.example.com",
|
|
"0.1.0",
|
|
"o",
|
|
"imnst+ov"
|
|
]
|
|
}
|
|
]
|
|
}
|