use discord time not server time

This commit is contained in:
Skye 2023-03-11 11:21:50 +09:00
parent 8b668d82bb
commit 3c414e0aea
Signed by: me
GPG key ID: 0104BC05F41B77B8

View file

@ -57,7 +57,7 @@ client.on("messageCreate", async (message) => {
message.channel.sendTyping();
}, 5000);
const recieved = Date.now();
const recieved = SnowflakeUtil.timestampFrom(message.id);
await new Promise<void>((resolve) => setTimeout(() => resolve(), 1500));