python - discord.py 自定义嵌入命令没有响应
问题描述
我有这个命令,当我说 时,我不想让它进行自定义嵌入p!customembed [colorID] [title] [description]
,但它没有响应。有人可以帮忙吗?谢谢。
@client.command()
async def customembed(ctx, color, title, description):
embed=discord.Embed(title=title, description=description, color=str(color))
await ctx.channel.send(embed=embed)
解决方案
您应该从终端发布您的回溯错误日志。
但我的猜测是您的 colorID 不适用于嵌入的颜色参数。
嵌入文档可能会解决您的问题
推荐阅读
- angular - 找不到有关双向绑定的酷 Angular 功能的文档
- reactjs - 如何使用下拉列表中的 selectedValue 来调用 API 并呈现 JSON?
- here-api - 添加默认地图事件会引发错误“需要地图实例”
- hololens - 如何检测您的混合现实应用程序是在 HoloLens 1、HoloLens 2 还是沉浸式耳机上运行?
- c# - 从依赖属性生成自定义项控件作为 UserControl 中的项源
- google-chrome - 用于计算源文档哈希的 Google Chrome 扩展程序
- linux - 使用 mono 命令在 Linux 操作系统中运行 WinCE exe
- blockchain - 如何使用 bigchaindb 配置私有区块链。有可能吗?
- xpath - eXist-db 集合排序
- amazon-web-services - 除了 aws ec2 vncserver 之外,看不到终端或其他任何东西