From ffd84c017e43af67740750cace94dec76620389e Mon Sep 17 00:00:00 2001 From: kmmiio99o Date: Sat, 25 Apr 2026 20:54:18 +0200 Subject: [PATCH] small fixes --- src/core/plugins/messagefix/index.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/core/plugins/messagefix/index.ts b/src/core/plugins/messagefix/index.ts index 0b35216..0efa77d 100644 --- a/src/core/plugins/messagefix/index.ts +++ b/src/core/plugins/messagefix/index.ts @@ -26,17 +26,19 @@ export default defineCorePlugin({ // Replace with our implementation MessageActions.sendMessage = function ( - channelId, - message, - replyRef, - options, + channelId: unknown, + message: unknown, + replyRef: unknown, + options: Record, ) { // Ensure options exists and has a nonce options = options || {}; - options.nonce = options.nonce || (BigInt(Date.now() - 1420070400000) << 22n).toString(); + if (!options.nonce) { + options.nonce = (BigInt(Date.now() - 1420070400000) << 22n).toString(); + } // Call original with fixed parameters - return originalSendMessage.call( + return (originalSendMessage as Function).call( this, channelId, message,