From 3c414e0aea851cea020a0cdf9b891231bc7f5c39 Mon Sep 17 00:00:00 2001 From: Skye Date: Sat, 11 Mar 2023 11:21:50 +0900 Subject: [PATCH] use discord time not server time --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 3db7366..ae6c11f 100644 --- a/index.ts +++ b/index.ts @@ -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((resolve) => setTimeout(() => resolve(), 1500));