【发布时间】:2025-12-31 18:20:07
【问题描述】:
我有这个代码:
embed=discord.Embed(title="Commands - Type '/help [command prefix]' for command info!", color=0xff0d13)
embed.set_footer(text="!blacklist, !clean, !clear, !disconnect, !id, !joinserver, !listids, !np, !pause, !perms, !play, !pldump, !queue, !restart, !resume, !search, !setavatar, !setname, !setnick, !shuffle, !shutdown, !skip, !summon, !volume")
await self.bot.say(embed=embed)
我不断收到此错误:
AttributeError: module 'discord' has no attribute 'Embed'
但我不知道是什么原因造成的;我已尝试再次安装discord.py,但这仍然会发生.. 是与代码本身还是其他原因有关?
【问题讨论】:
-
你能发布你的完整程序吗?我感觉你错过了什么。
标签: python discord discord.py