pythondiscord.py

Programming a Discord bot in Python- How do I indent in embeds?


I've been trying to figure out how to indent (go down a line) in embeds. I am aware of embed.add_field, but that's not quite what I want. It creates a title with some text below it. I want a new line of text, no title.


Solution

  • embed = discord.Embed(title='title', description='description', color=discord.Color.anycolor)
    

    The description line is posted under the title, and if that doesn't work for what you want using \n anywhere in your code will make it like a return function to the next line.