Python 斜杠命令和嵌入问题
我想使用新的斜杠命令功能生成一个“帮助”命令。此外,我希望隐藏嵌入消息,以便只有消息作者才能看到它:Python 斜杠命令和嵌入问题,python,python-3.x,discord,discord.py,Python,Python 3.x,Discord,Discord.py,我想使用新的斜杠命令功能生成一个“帮助”命令。此外,我希望隐藏嵌入消息,以便只有消息作者才能看到它: @slash.slash(name='help', description='Help command', guild_ids=guild_ids) @commands.has_role(804318858873536522) async def help(ctx): embed=discord.Embed(title='Help', description='Heres the hel
@slash.slash(name='help', description='Help command', guild_ids=guild_ids)
@commands.has_role(804318858873536522)
async def help(ctx):
embed=discord.Embed(title='Help', description='Heres the help', colour=discord.Colour.blue())
await ctx.send(embed=embed, hidden=True)
当我执行此命令时,出现以下错误:
discord.errors.HTTPException: 400 Bad Request (error code: 50006): Cannot send an empty message
如果我删除“隐藏”参数,它可以正常工作。但正如我所说,我希望只有作者才能看到这条信息。那么有没有办法发送这样的嵌入?这似乎是一个bug。发送一个嵌入文件可以独立工作,并且
hidden=True
可以与content='…'
一起工作。如果可能,请将您的嵌入内容更改为
顺便说一句,很抱歉把这个作为一个答案,我没有足够的声誉来评论