Skip to content
Advertisement

How do I embed a response? Discord Bot Python

This is the code I have and I was wondering how do I make it so that the bot embeds the requirements.

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

Advertisement

Answer

Here:

@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)
Advertisement