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

VoiceChatOptions

What defineVoiceChat takes.

Type Parameter
Channels extends Record<string, VoiceChannel>
Property Type Description
canReceive? VoiceChatReceiveRule The game’s rule for every pair on every channel, run before a channel’s own: the dead hear everyone, the living never hear the dead. Every pair a channel reaches when left out.
canSend? VoiceChatSendRule The game’s rule for whether a player may talk now, on every channel, run before a channel’s own. Every player may when left out.
channels? Channels The channels, by name. One flat all channel when left out.