Ask coding questions

← Back to all posts
Ping! help needed
ReshiramWolfu (100)

This is my code for my bot already, I want to know how to post the ping (in milliseconds) in the command dedicated for it, can someone help

Answered by Dopest_Pleb (19) [earned 5 cycles]
View Answer
Dopest_Pleb (19)

Change your ping command code to await ctx.send(f'Pong! {client.latency}')

Account426463 (3)

it's client.latency.