Merge remote-tracking branch 'upstream/main' into dev

This commit is contained in:
Kernel Builder 2026-01-01 18:18:27 +01:00
commit 81b32a491e
No known key found for this signature in database
GPG key ID: 163FE39F7772D2EC
3 changed files with 10 additions and 12 deletions

View file

@ -29,13 +29,11 @@ export default () =>
`> Device: ${info.device.model}`,
].join("\n");
if (ephemeral?.value) {
messageUtil.sendBotMessage(ctx.channel.id, content);
} else {
const fixNonce = Date.now().toString();
messageUtil.sendMessage(ctx.channel.id, { content }, void 0, {
nonce: fixNonce,
});
}
},
};
if (ephemeral?.value) {
messageUtil.sendBotMessage(ctx.channel.id, content);
} else {
const fixNonce = (BigInt(Date.now() - 1420070400000) << 22n).toString();
messageUtil.sendMessage(ctx.channel.id, { content }, void 0, {nonce:fixNonce});
}
}
};

View file

@ -190,7 +190,7 @@ export default () =>
if (ephemeral?.value) {
messageUtil.sendBotMessage(ctx.channel.id, content);
} else {
const fixNonce = Date.now().toString();
const fixNonce = (BigInt(Date.now() - 1420070400000) << 22n).toString();
messageUtil.sendMessage(ctx.channel.id, { content }, void 0, {
nonce: fixNonce,
});

View file

@ -33,7 +33,7 @@ export default defineCorePlugin({
) {
// Ensure options exists and has a nonce
options = options || {};
options.nonce = options.nonce || Date.now().toString();
options.nonce = options.nonce || (BigInt(Date.now() - 1420070400000) << 22n).toString();
// Call original with fixed parameters
return originalSendMessage.call(