Discord API Ping

BlockUtilities

Measure current patency to the Discord API.

Outputs

Latency (Milliseconds)

Current latency to the Discord API in milliseconds.

Example: 120

Build a bot using blocks like Discord API Ping

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: discord_api_ping

Outputs

FieldInventScript nameValue
Latency (Milliseconds)latency_mse.g. "120"

Example InventScript

apiPing := discord_api_ping()
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Latency (Milliseconds): " + apiPing.latency_ms,
})

More utilities blocks