📌  相关文章
📜  如何制作延迟命令 discord.py - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:33.229000             🧑  作者: Mango

代码示例2
@bot.command(name="ping", pass_context=True, aliases=["latency", "latence"])
async def ping(ctx):
    
    embed = discord.Embed(title="__**Latence**__", colour=discord.Color.dark_gold(), timestamp=ctx.message.created_at)
    embed.add_field(name="Latence du bot :", value=f"`{round(bot.latency * 1000)} ms`")

    await ctx.send(embed=embed)
    
    """
    Text in french
    """