-
Notifications
You must be signed in to change notification settings - Fork 55
RoomAPI
Add a user to this room. If they are already in a room, they are removed from it. Returns true
if successful.
Remove a user from this room. They are added to the lobby if the server is configured to autoJoinLobby
(default true). If the user is not in this room, nothing happens and no error occurs.
Returns an array of all users. If optional json argument is true, return array of {id: str, name: str} objects.
An object for you to store custom data for each room. Initially it is {}
and no data is added automatically by cloak.
True if the room is the lobby.
A unique id for this room.
The name set when the room was created.
Age of this room in milliseconds
The same as doing user.message(name, arg)
for each user in the room.
Deletes the room. All members are kicked out. If the server is configured to autoJoinLobby
(as by default) the users are added to the lobby. Otherwise they become roomless.
All documentation on this wiki is licensed under a Creative Commons Attribution 3.0 Unported License. To attribute simply link to this wiki.