From 5e2ff898c0d3addf4fb268dcf2e9fd52442a17f0 Mon Sep 17 00:00:00 2001 From: Jaron Date: Tue, 14 Oct 2025 00:00:15 -0500 Subject: [PATCH] Update website/src/components/CodeExample.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- website/src/components/CodeExample.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/components/CodeExample.tsx b/website/src/components/CodeExample.tsx index 8dd5f36..d6a9d77 100644 --- a/website/src/components/CodeExample.tsx +++ b/website/src/components/CodeExample.tsx @@ -130,7 +130,7 @@ client.chatCommands.register('ping', async (context: Context, args: any[]) => { // Send a message to the channel const response = await context.reply(\`Pong!: got \${args.join(', ')}\`, true); // Calculate the time it took to send the message - const time = message.timestamp.getTime() - message.timestamp.getTime(); + const time = Date.now() - message.timestamp.getTime(); // Edit the message to include the time await context.editMessage(response, \`Pong! Latency: \${time}ms\`); });`;