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

我正在尝试使用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()对他们来说很好

dany12345678 回答:discord.py-self.client.session.get()不起作用

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

本文链接:https://www.f2er.com/3001371.html

大家都在问