src/cogs/info.py
async def ping(self, ctx):
        """Return response time and latency."""
        m = await ctx.send('Pinging...')
        time = m.created_at - ctx.message.created_at
        embed = discord.Embed(
            colour=discord.Colour.blurple(),
            description="```\n"
            f"Response: {time.total_seconds() * 1000} ms\n"
            f"Latency: {self.bot.latency * 1000:.2f} ms\n```"
        )
        await m.edit(content=None, embed=embed)
Return response time and latency.
Return response time and latency.
Return response time and latency .
async def ping(self, ctx):
        m = await ctx.send('Pinging...')
        time = m.created_at - ctx.message.created_at
        embed = discord.Embed(
            colour=discord.Colour.blurple(),
            description="```\n"
            f"Response: {time.total_seconds() * 1000} ms\n"
            f"Latency: {self.bot.latency * 1000:.2f} ms\n```"
        )
        await m.edit(content=None, embed=embed)
async def ping ( self , ctx ) : m = await ctx . send ( 'Pinging...' ) time = m . created_at - ctx . message . created_at embed = discord . Embed ( colour = discord . Colour . blurple ( ) , description = "```\n" f"Response: {time.total_seconds() * 1000} ms\n" f"Latency: {self.bot.latency * 1000:.2f} ms\n```" ) await m . edit ( content = None , embed = embed )
Return response time and latency.
Return response time and latency .
"""Return response time and latency."""
self
ctx