discord.py-self.client.session.get()不起作用

时间:2019-11-30 20:08:17

标签: python python-3.x discord.py

我正在尝试使用await self.client.session.get()

获取图像

启动机器人时,它不会发送错误,但是当我运行命令时,它会发送discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Bot' object has no attribute 'session'

有人知道我该如何解决吗?我一直在寻找自己,self.client.session.get()对他们来说很好

1 个答案:

答案 0 :(得分:0)

就像错误提示一样,discord.ext.commands.Bot没有session属性。
我不确定“谁”是谁,但是他们很可能使用具有该属性的自定义Bot子类。

相关问题