use discord time not server time
This commit is contained in:
parent
8b668d82bb
commit
3c414e0aea
1 changed files with 1 additions and 1 deletions
2
index.ts
2
index.ts
|
@ -57,7 +57,7 @@ client.on("messageCreate", async (message) => {
|
||||||
message.channel.sendTyping();
|
message.channel.sendTyping();
|
||||||
}, 5000);
|
}, 5000);
|
||||||
|
|
||||||
const recieved = Date.now();
|
const recieved = SnowflakeUtil.timestampFrom(message.id);
|
||||||
|
|
||||||
await new Promise<void>((resolve) => setTimeout(() => resolve(), 1500));
|
await new Promise<void>((resolve) => setTimeout(() => resolve(), 1500));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue