【发布时间】:2021-04-16 06:20:18
【问题描述】:
这是我拥有的代码,我想知道如何制作它以便机器人嵌入需求。
@client.command()
async def partner(ctx):
await ctx.send("""__Requirements:__
1)
2)
""")
【问题讨论】:
这是我拥有的代码,我想知道如何制作它以便机器人嵌入需求。
@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)
【讨论】:
discord.Embed(..., color=0x00ff00)