首页 > 解决方案 > Discord Bot Python 2.6(如何通过嵌入造句)

问题描述

也许标题不清楚。但我希望描述足够清楚。例如

@client.command()
async def info():
# the bot will embed
#in the first line the bot will say 'There is'
#and in the second line the bot withh say 'hah'

像这样

标签: python-3.6discord.py

解决方案


只需在描述中添加一个换行符:

await client.say(embed=Embed(description='there is\nhah'))

推荐阅读