【问题标题】:Discord Bot Python 2.6 (How to make a sentence by embed)Discord Bot Python 2.6(如何通过嵌入造句)
【发布时间】:2019-03-23 07:23:42
【问题描述】:

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

@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.6 discord.py


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2021-11-06
      • 1970-01-01
      • 2021-08-12
      • 2020-08-02
      • 2021-04-26
      • 2019-04-19
      • 2021-10-07
      • 2019-02-22
      • 1970-01-01
      相关资源
      最近更新 更多