{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://sneak.berlin/go/neoirc/schema/commands/TOPIC.json", "title": "TOPIC", "description": "Set a channel's topic. A client sends it to set the topic. The server sends it to every member of the channel when the topic changes. RFC 1459 ยง4.2.4.", "$ref": "../message.json", "properties": { "command": { "const": "TOPIC" }, "from": { "type": "string", "description": "The nick that set the topic. The server sets it." }, "to": { "type": "string", "description": "The channel name. The server adds the # if a client leaves it out.", "pattern": "^#?[a-zA-Z0-9_-]{1,63}$" }, "body": { "type": "array", "items": { "type": "string" }, "description": "The new topic. The server joins a client's strings with spaces, and sends the topic as one string. [\"\"] clears the topic.", "minItems": 1 } }, "required": ["command", "to", "body"], "examples": [ { "command": "TOPIC", "from": "alice", "to": "#general", "body": ["Welcome to the channel"] } ] }