Create a public channel.
Name | Requires Auth | Permission | Setting |
---|---|---|---|
createChannel |
Yes | create-c |
Argument | Example | Required | Description |
---|---|---|---|
name |
channelname |
Required | The name of the channel. |
members |
["rocket.cat"] |
Optional; |
An array of usernames, represented as strings, for the users designated to be included in the channel. |
readOnly |
true |
Optional; |
Set if the channel is read only or not. The value must be boolean. |
{
"msg": "method",
"method": "createChannel",
"id": "2",
"params": [
"test-websocket",
["funke.olasupo"],
false
]
}
{
"msg": "result",
"id": "2",
"result": [
{ "rid": "BBkfgYT2azf7RPTTg" }
]
}