I want to edit my message as it calculates the Bot Latency

if (message.content.startsWith('h#ping')) {
        message.channel.send('*Calculating...*').then((pingCalc) => {
            const ping = pingCalc.createdTimestamp - message.createdTimestamp
            message.reply(`Ping: ${ping}ms`)
        })
}

Instead of replying ping, I want to edit the Calculating… part for the ‘ping’ value.

Answer

The Message object has an edit method. So <Message>.edit() would edit the message. Since you are resolving the promise after sending the message using then(), inside the then function instead of message.reply() you could just do, pingCalc.edit(`Ping: ${ping}ms`) would edit the sent message.

if (message.content.startsWith('h#ping')) {
        message.channel.send('*Calculating...*').then((pingCalc) => {
            const ping = pingCalc.createdTimestamp - message.createdTimestamp
            pingCalc.edit(`Ping: ${ping}ms`)
        })
}