From bf9d1e18b0b75d8dd4eda0f33df95885ad9d6a9b Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Sun, 18 Dec 2022 00:38:23 +1100 Subject: [PATCH] Update ping.ts --- src/commands/ping.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/ping.ts b/src/commands/ping.ts index b6bba5b..fdbdfaf 100644 --- a/src/commands/ping.ts +++ b/src/commands/ping.ts @@ -4,7 +4,7 @@ export default { async run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){ const msg = await interaction.reply({content: 'Pinging...', fetchReply: true}) const time = msg.createdTimestamp - interaction.createdTimestamp; - msg.edit(`Websocket: \`${client.ws.ping}\`ms\nBot: \`${time}\`ms`) + msg.edit(`Websocket: \`${client.formatTime(client.ws.ping, 3, {longNames: false, commas: true})}\`\nBot: \`${client.formatTime(time, 3, {longNames: false, commas: true})}\``) }, data: new SlashCommandBuilder() .setName('ping')