Revert "Merge remote-tracking branch 'upstream/main' into dev"
This reverts commit81b32a491e, reversing changes made to179679f215.
This commit is contained in:
parent
225c1e13a0
commit
dcd8811652
3 changed files with 12 additions and 10 deletions
|
|
@ -29,11 +29,13 @@ export default () =>
|
|||
`> Device: ${info.device.model}`,
|
||||
].join("\n");
|
||||
|
||||
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});
|
||||
}
|
||||
}
|
||||
};
|
||||
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,
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ export default () =>
|
|||
if (ephemeral?.value) {
|
||||
messageUtil.sendBotMessage(ctx.channel.id, content);
|
||||
} else {
|
||||
const fixNonce = (BigInt(Date.now() - 1420070400000) << 22n).toString();
|
||||
const fixNonce = Date.now().toString();
|
||||
messageUtil.sendMessage(ctx.channel.id, { content }, void 0, {
|
||||
nonce: fixNonce,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export default defineCorePlugin({
|
|||
) {
|
||||
// Ensure options exists and has a nonce
|
||||
options = options || {};
|
||||
options.nonce = options.nonce || (BigInt(Date.now() - 1420070400000) << 22n).toString();
|
||||
options.nonce = options.nonce || Date.now().toString();
|
||||
|
||||
// Call original with fixed parameters
|
||||
return originalSendMessage.call(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue