| mx_room_create | R Documentation |
Create a room
mx_room_create(
session,
name = NULL,
topic = NULL,
visibility = "private",
preset = NULL,
invite = character(),
creation_content = NULL
)
session |
An "mx_session" object. |
name |
Character or NULL. Human-readable room name. |
topic |
Character or NULL. Room topic. |
visibility |
Character. "private" (default) or "public". |
preset |
Character or NULL. A Matrix room preset ("private_chat", "trusted_private_chat", "public_chat"). |
invite |
Character vector. Matrix IDs to invite. |
creation_content |
Named list or NULL. Merged into the
|
The new room ID as a character string.
## Not run:
room_id <- mx_room_create(s, name = "test", topic = "hello")
# A space, which holds other rooms instead of messages
space_id <- mx_room_create(s, name = "Topics",
creation_content = list(type = "m.space"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.