Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
763 views
in Technique[技术] by (71.8m points)

discord.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.

question from:https://stackoverflow.com/questions/66055406/programming-a-discord-bot-in-python-how-do-i-indent-in-embeds

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
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 anywhere in your code will make it like a return function to the next line.

If this doesn't work you can contact me on discord at killrebeest#7187 or comment to this answer! Have a great day!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...