【发布时间】:2018-10-18 11:08:35
【问题描述】:
您好,我正在尝试将 .txt 文件中的一些内容作为列表嵌入到嵌入中,但是在命令 !changelog 上将其显示为列表时遇到问题。
我收到此错误:
raise HTTPException(r, data)
discord.errors.HTTPException: BAD REQUEST (status code: 400): Invalid Form Body
这是我目前得到的:
@commands.command(invoke_without_command=True, case_insensitive=True)
@checks.is_channel_mod()
async def changelog(self, ctx):
changelog = open("changelog.txt").readlines()
embed = discord.Embed(description=changelog, colour=discord.Color(random.randint(0x000000, 0xFFFFFF)))
embed.title = "Changelog"
embed.set_image(url='')
await ctx.send(embed=embed)
您的帮助将不胜感激。
【问题讨论】:
标签: discord.py embedding discord.py-rewrite