Files
lolympus-tournament-support/packages/contracts/src/auction.ts
T

33 lines
630 B
TypeScript

/** Ephemeral reactions are broadcast only to the joined auction room. */
export type AuctionReactionKind =
| "thumbs-up"
| "heart"
| "clap"
| "laugh"
| "wow"
| "sad"
| "fire"
| "celebrate"
| "eyes"
| "thinking"
| "skull-crossbones"
| "poop"
| "pray"
| "sweat-smile"
| "money"
| "trophy";
export interface AuctionReactionEvent {
id: string;
kind: AuctionReactionKind;
displayName: string;
userId?: string;
sentAt: number;
}
export interface AuctionReactionReply {
ok: boolean;
reaction?: AuctionReactionEvent;
code?: "NOT_JOINED" | "INVALID_REACTION" | "REACTION_RATE_LIMITED";
}