From cc1e8fe9c73b9269ec9155a865389a298bc749c8 Mon Sep 17 00:00:00 2001 From: simoleo89 Date: Tue, 19 May 2026 20:38:47 +0200 Subject: [PATCH] fix(api): align IRoomSession.sendBackgroundMessage signature with the impl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- packages/api/src/nitro/session/IRoomSession.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/nitro/session/IRoomSession.ts b/packages/api/src/nitro/session/IRoomSession.ts index cfd5f1f..5323a9b 100644 --- a/packages/api/src/nitro/session/IRoomSession.ts +++ b/packages/api/src/nitro/session/IRoomSession.ts @@ -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;