[英]How do I get a discord bot to send a random message inside an embed in 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.