fix(api): align IRoomSession.sendBackgroundMessage signature with the impl

The RoomSession.sendBackgroundMessage impl takes 5 args (background,
stand, overlay, card, border) but the interface only declared 4 —
TypeScript consumers calling roomSession.sendBackgroundMessage(...) with
the border arg failed to typecheck even though the runtime call worked.
Add the optional backgroundBorder?: number trailing parameter to the
interface so the contract matches what RoomSession.ts ships.
This commit is contained in:
simoleo89
2026-05-19 20:38:47 +02:00
parent 4be09c6c62
commit cc1e8fe9c7
@@ -13,7 +13,7 @@ export interface IRoomSession
sendShoutMessage(text: string, styleId: number, chatColour?: string): void;
sendWhisperMessage(recipientName: string, text: string, styleId: number): void;
sendChatTypingMessage(isTyping: boolean): void;
sendBackgroundMessage(backgroundImage: number, backgroundStand: number, backgroundOverlay: number, backgroundCard?: number): void;
sendBackgroundMessage(backgroundImage: number, backgroundStand: number, backgroundOverlay: number, backgroundCard?: number, backgroundBorder?: number): void;
sendMottoMessage(motto: string): void;
sendDanceMessage(danceId: number): void;
sendExpressionMessage(expression: number): void;