sendMatchSpectate
sendMatchSpectate(
world,target):Promise<SettledCommandResult<CommandHandle<{following:EntityCommandField&object;match:EntityCommandField&object;serial:NumberCommandField; },"game-rule"|"spectators-full"|"already-in-match"|"not-eliminated"|"no-match"|"cannot-follow"|"not-spectating",undefined,false,false,"spectate",false,false>>>
Asks the room to have this page’s player watch target’s match,
following its following or its first member, or to switch whom the
player follows, or with null to stop watching while the player keeps
their place in line. Resolves accepted, or refused with a
MatchSpectateRefusal; a stop sent for a watch the player has left
since is refused not-spectating. An eliminated member names the
member’s own match to switch whom the member watches.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
target |
MatchSpectateTarget | null |
Returns
Section titled “Returns”Promise<SettledCommandResult<CommandHandle<{ following: EntityCommandField & object; match: EntityCommandField & object; serial: NumberCommandField; }, "game-rule" | "spectators-full" | "already-in-match" | "not-eliminated" | "no-match" | "cannot-follow" | "not-spectating", undefined, false, false, "spectate", false, false>>>