Skip to content

Commit e7ba91f

Browse files
committed
hot fix number 2
1 parent 286138d commit e7ba91f

File tree

1 file changed

+17
-3
lines changed
  • CosmoQuestBot-master/commands

1 file changed

+17
-3
lines changed

CosmoQuestBot-master/commands/ping.js

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,23 @@ module.exports.run = async (client, message, args) => {
1414
sendLaten = time2 - time1;
1515

1616
let pEmbed = new Discord.MessageEmbed()
17-
.addFields(":inbox_tray: Download Latency: ", Math.round(clientPing) + "ms", true)
18-
.addFields(":outbox_tray: Upload Latency: ", Math.round(sendLaten) + "ms", true)
19-
.addFields(":bullettrain_side: API Latency:", Math.round(client.ws.ping) + "ms", true)
17+
.addFields(
18+
{
19+
name: ":inbox_tray: Download Latency: ",
20+
value: Math.round(clientPing) + "ms",
21+
inline: true
22+
},
23+
{
24+
name: ":outbox_tray: Upload Latency: ",
25+
value: Math.round(sendLaten) + "ms",
26+
inline: true
27+
},
28+
{
29+
name: ":bullettrain_side: API Latency:",
30+
value: Math.round(client.ws.ping) + "ms",
31+
inline: true
32+
}
33+
)
2034
.setColor("GREEN")
2135
// debug(time1, time2, sendLaten, clientPing, client.ws.ping);
2236
message.channel.send({"embeds": [pEmbed]});

0 commit comments

Comments
 (0)