【发布时间】:2020-04-16 12:19:07
【问题描述】:
https://gyazo.com/fce96f41aee0160e197981d1646600a2
bot.on('message', msg=> {
if(msg.content == "ping"){
msg.reply("Asteapta...")
.then((msg) => { // Resolve promise
msg.edit("> Pingul este: " + (Date.now() - msg.createdTimestamp)+" milisecunde") // Edits message with current timestamp minus timestamp of message
});
}
})
正如您在视频中看到的那样,ping 显示为负数并且是一个很大的数字。请帮忙!
【问题讨论】:
标签: javascript discord discord.js ping