首页 > 解决方案 > 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)

标签: pythondiscord.py

解决方案


您应该从终端发布您的回溯错误日志。
但我的猜测是您的 colorID 不适用于嵌入的颜色参数。

嵌入文档可能会解决您的问题


推荐阅读