You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
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:
@@ -13,7 +13,7 @@ export interface IRoomSession
|
|||||||
sendShoutMessage(text: string, styleId: number, chatColour?: string): void;
|
sendShoutMessage(text: string, styleId: number, chatColour?: string): void;
|
||||||
sendWhisperMessage(recipientName: string, text: string, styleId: number): void;
|
sendWhisperMessage(recipientName: string, text: string, styleId: number): void;
|
||||||
sendChatTypingMessage(isTyping: boolean): 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;
|
sendMottoMessage(motto: string): void;
|
||||||
sendDanceMessage(danceId: number): void;
|
sendDanceMessage(danceId: number): void;
|
||||||
sendExpressionMessage(expression: number): void;
|
sendExpressionMessage(expression: number): void;
|
||||||
|
|||||||
Reference in New Issue
Block a user