簡體   English   中英

如何嵌入響應? Discord 機器人 Python

[英]How do I embed a response? Discord Bot Python

這是我擁有的代碼,我想知道如何制作它以便機器人嵌入需求。

@client.command()
async def partner(ctx):
    await ctx.send("""__Requirements:__
1)
2)
    """)

這里:

@client.command()
async def partner(ctx):
  embed = discord.Embed(title="Requirements:")
  embed.add_field(name="(1) Title", value="Body 1", inline=False)
  embed.add_field(name="(2) Title", value="Body 2", inline=False)
  await ctx.send(embed=embed)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM