fix(corecommands): fixed core commands (thanks windows VM user!)

This commit is contained in:
cocobo1 2025-09-22 22:04:55 +03:00
parent 5fd1d4f996
commit f0745a3c9e
2 changed files with 4 additions and 2 deletions

View file

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

View file

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