import discord import time async def execute(bot, params, message): start = time.perf_counter() temp_msg = await message.channel.send("Pong!") end = time.perf_counter() latency = round((end - start) * 1000) # ms await temp_msg.edit(content=f"Pong! Latence : {latency}ms\nLatence API : {round(bot.latency * 1000)}ms")