python-3.6 - 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'
像这样
解决方案
只需在描述中添加一个换行符:
await client.say(embed=Embed(description='there is\nhah'))
推荐阅读
- javascript - JavaScript 对象字面量和 Python 字典一样吗?
- .htaccess - 如何将 301 重定向从 A 恢复到 B,而不会导致无限循环
- json - 如何在自定义 ContextualWebSearch 上获取“突发新闻”?
- c++ - 在 VM 上使用 OpenCV 重建 C++ 程序
- kotlin - 如何增加 Kotlin 数据类中的整数字段
- c - -Ofast 的 GCC 问题?
- javascript - 静态类属性的继承
- python - 在邮件客户端加载垃圾邮件之前从收件箱中删除垃圾邮件
- python - 将数据添加到 Pandas DataFrame
- r - 如何按 R 中的矩阵列填充向量?