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

TextChatSendResult

TextChatSendResult = { message: TextChatMessage; ok: true; } | { ok: false; reason: TextChatRefusal; retryAfterSeconds?: number; }

What sendTextChatMessage resolves with: the message as she reads it, or why the room refused it.

{ message: TextChatMessage; ok: true; }


{ ok: false; reason: TextChatRefusal; retryAfterSeconds?: number; }

Name Type Description
ok false -
reason TextChatRefusal -
retryAfterSeconds? number Seconds until her next message goes, for rate-limited.