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

sendMatchForfeit

sendMatchForfeit(world, isVoting?): Promise<SettledCommandResult<CommandHandle<{ isVoting: BooleanCommandField; serial: NumberCommandField; }, NotInMatch | ForfeitOff, undefined, false, false, "forfeit", false, true>>>

Asks the room to count this page’s player’s vote to forfeit, or take it back.

Parameter Type Default value
world World undefined
isVoting boolean true

Promise<SettledCommandResult<CommandHandle<{ isVoting: BooleanCommandField; serial: NumberCommandField; }, NotInMatch | ForfeitOff, undefined, false, false, "forfeit", false, true>>>