2021-03-05 16:50:54 +01:00
|
|
|
import * as tg from "generic-type-guard";
|
|
|
|
|
|
|
|
export const isChatEvent =
|
|
|
|
new tg.IsInterface().withProperties({
|
|
|
|
message: tg.isString,
|
|
|
|
author: tg.isString,
|
|
|
|
}).get();
|
2021-03-06 15:26:07 +01:00
|
|
|
/**
|
|
|
|
* A message sent from the iFrame to the game to add a message in the chat.
|
|
|
|
*/
|
2021-03-05 16:50:54 +01:00
|
|
|
export type ChatEvent = tg.GuardedType<typeof isChatEvent>;
|