From 337e09340d1f9655d30cdde12fe92584192e84fd Mon Sep 17 00:00:00 2001 From: hackermon Date: Thu, 1 Dec 2022 21:39:31 -0500 Subject: [PATCH] fix bug --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index c762fbc..94245c7 100644 --- a/app.js +++ b/app.js @@ -24,7 +24,7 @@ const rl = createInterface({ input: process.stdin, output: process.stdout }); client.on('interactionCreate', (interaction) => { if (interaction.commandName === 'ping') { - interaction.reply(`Latency is ${Date.now() - message.createdTimestamp}ms. API Latency is ${Math.round(client.ws.ping)}ms`); + interaction.reply(`Latency is ${Date.now() - interaction.createdTimestamp}ms. API Latency is ${Math.round(client.ws.ping)}ms`); } else if(interaction.commandName === 'command2') { // This is the example command's name! interaction.reply('example command'); } else { // a response if you forget to add the command here