Konrad
Konrad
DIAdiscord.js - Imagine an app
Created by Konrad on 7/7/2024 in #djs-questions
Bot not returning API latency
Hello, I'm trying to make my bot return API latency but it is responding with NaN. In my code, API latency is defined as const apiLatency = client.ws.ping;. I also tried putting console.log(client.ws.ping) but it still returned NaN. So I can't figure out whats the problem.
8 replies