【发布时间】:2021-09-17 19:28:52
【问题描述】:
我想发送一个大字符串:
my_text = "...greater.than.4096.chars..."
embed = discord.Embed(title='Hello World')
embed.description = my_text
await ctx.send(embed=embed)
但是我得到这个错误:
In embed.description: Must be 4096 or fewer in length.
discord.py 有没有办法自动将字符串拆分成多个块发送?
In discord.js, they have a way to do so like this:
.send(data, { split: true })
discord.py 有类似的东西吗?还是我必须自己编写解决方案?
【问题讨论】:
标签: python-3.x discord.py