$ping will return the bot’s latency.
$ping
This will return your bot’s latency in MS:
1client.command({2 name: "ping",3 code: `4 My ping is: $pingMS!5 `6});