PrivateRoomMenu
The app’s verbs on the private room this page’s room runs, as
usePrivateRoomMenu returns them. Each answers done, cancelled or
refused with a reason: not-private in a room that runs no private
room, and unavailable outside the player app.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
ban |
(playerId) => Promise<WorldRequestResult> |
Bans the player whose id in the game is playerId from the private room, which its owner alone may ask and the app confirms first: the player leaves the room and enters it no more, by any link, until its owner lifts the ban in the app’s sheet. Refused not-owner to anyone else, and not-found for a player the room does not hold. |
inviteFriends |
() => Promise<WorldRequestResult> |
Opens the app’s sheet for the private room: its link with Copy and Share, the player’s friends with Invite, and for its owner New link, the players in the room with Ban, and the players it banned with Lift ban. Done once the sheet is open. |