Rooms¶
Users with sufficient Permission model can take world-relevant actions like create rooms.
Reactions¶
You can send a reaction like this:
=> ["room.react", 123, {"room": "room_1", "reaction": "👏"}]
<- ["success", 123, {}]
You will get a success message even if the reaction is ignored due to rate limiting.
If you or someone else reacts, you receive aggregated reaction events, approximately one per second:
<= ["room.reaction", {"room": "room_1", "reactions": {"👏": 42, "👍": 12}}]
Allowed reactions currently are:
👏
❤️
👍
🤣
😮
Room management¶
You can delete a room like this:
=> ["room.delete", 123, {"room": "room_1"}]
<- ["success", 123, {}]
As an administrator, you can also get a room’s internal configuration:
=> ["room.config.get", 123, {"room": "room_1"}]
<- ["success", 123, {…}]
And update it:
=> ["room.config.patch", 123, {"room": "room_1", "name": "Bla"}]
<- ["success", 123, {…}]
Or for all rooms:
=> ["room.config.list", 123, {}]
<- ["success", 123, [{…}, …]]
Reorder rooms:
=> ["room.config.reorder", 123, [$id, $id2, $id3…]]
<- ["success", 123, [{…}, …]]
Schedule changes¶
Moderators can update the current schedule_data
field like this:
=> ["room.schedule", 123, {"room": "room_1", "schedule_data": {"session": 1}}]
<- ["success", 123, {}]
Permitted session data keys are session
and title
.
When the schedule data is updated, a broadcast to all users in the room is sent:
=> ["room.schedule", {"room": "room_1", "schedule_data": {"session": 1}}]