Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

sendMatchLeave

sendMatchLeave(world): Promise<SettledCommandResult<CommandHandle<{ serial: NumberCommandField; spectatorSerial: NumberCommandField; }, NotInMatch, undefined, false, false, "leave", false, false>>>

Asks the room to take this page’s player out of their slot or their line, and out of any match the player watches, as the player’s page read them: one sent for places the player has left since is refused not-in-match.

Parameter Type
world World

Promise<SettledCommandResult<CommandHandle<{ serial: NumberCommandField; spectatorSerial: NumberCommandField; }, NotInMatch, undefined, false, false, "leave", false, false>>>