{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://sneak.berlin/go/neoirc/schema/numerics/332.json", "title": "332 RPL_TOPIC", "description": "A channel's topic. Sent to a client after it sets the topic, and after it joins a channel that has one. Also sent for each of a session's channels that has one after a login, and for GET /api/v1/state?initChannelState=1. RFC 1459 ยง6.2.", "$ref": "../message.json", "properties": { "command": { "const": "RPL_TOPIC" }, "code": { "const": 332 }, "from": { "type": "string", "description": "The server name." }, "to": { "type": "string", "description": "The user's nick." }, "params": { "type": "array", "items": { "type": "string" }, "description": "The channel name.", "minItems": 1, "maxItems": 1 }, "body": { "type": "array", "items": { "type": "string" }, "description": "One string: the topic.", "minItems": 1, "maxItems": 1 } }, "required": [ "command", "code", "from", "to", "params", "body" ], "examples": [ { "command": "RPL_TOPIC", "code": 332, "from": "neoirc", "to": "alice", "params": [ "#general" ], "body": [ "Welcome to the channel" ] } ] }