【发布时间】:2020-08-09 11:59:56
【问题描述】:
`module.exports = {
name: 'lat2',
description: 'Let the Bot display latency/Response Time and API latency',
execute(message, args) {
const Embed1 = {
color: "RANDOM",
description: 'Pinging...',
};
const Embed2 = {
color: "RANDOM",
title: 'Latencies',
description: `Latency/Response Time: ${send.createdTimestamp - message.createdTimestamp}ms\nAPI latency/"Remote Response time": ${Math.round(message.client.ws.ping)}ms`,
};
message.channel.send({ embed: Embed1 }).then(send => {
send.edit({ embed: Embed2 });
})
}
};`
所以我可以嵌入整个事情吗?因为...send is not defined 在非嵌入版本中工作正常。
【问题讨论】:
标签: javascript bots embed discord.js message