From 9e4a91dd46194ab2610a9dff36c9de63d1509602 Mon Sep 17 00:00:00 2001 From: Xeovalyte Date: Sat, 12 Aug 2023 11:34:34 +0200 Subject: [PATCH] fixed ephemeral mistake --- discordbot/commands/ping.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discordbot/commands/ping.js b/discordbot/commands/ping.js index 4201cd0..1c0c010 100644 --- a/discordbot/commands/ping.js +++ b/discordbot/commands/ping.js @@ -7,8 +7,8 @@ module.exports = { .setName('ping') .setDescription('Replies with Pong!'), async execute(interaction) { - const reply = await interaction.reply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **Pinging...**`)], fetchReply: true, emphemeral: true }); + const reply = await interaction.reply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **Pinging...**`)], fetchReply: true, ephemeral: true }); - interaction.editReply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **${reply.createdTimestamp - interaction.createdTimestamp}ms**`)] }); + interaction.editReply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **${reply.createdTimestamp - interaction.createdTimestamp}ms**`)], ephemeral: true }); }, };