You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have updated python to 3.7 along with downloading latest of all modules. I believe discord.py had updated to v1.0 which changed a buuunch of stuff as shown here:
>> [Discord] Message from #testing-channel: mirai show me the error please
Ignoring exception in on_message
Traceback (most recent call last):
File "C:\Users\Jake\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\client.py", line 255, in _run_event
await coro(*args, **kwargs)
File "D:\Mirai\DerpyBot-v0.9.3.7_dev\clients\discord_client\discord_client.py", line 91, in on_message
if message.channel.is_private:
AttributeError: 'TextChannel' object has no attribute 'is_private'
[Discord] Message from #testing-channel: thanks
The problem is discord_client.py line 91 as shown in the error:
if message.channel.is_private:
This is old and apparently should be replaced with something like:
if message.channel.isinstance(channel, discord.abc.PrivateChannel)
But doesn't seem to be working in any way I try.. I'm pretty meh at writing code, I usually do disassembly so I'm using this program you made as a bit of practise :)
I'm going to keep working on a fix in my fork and I'll update this issue thread if I find one
-IneptV
The text was updated successfully, but these errors were encountered:
Hi,
I have updated python to 3.7 along with downloading latest of all modules. I believe discord.py had updated to v1.0 which changed a buuunch of stuff as shown here:
https://discordpy.readthedocs.io/en/latest/migrating.html#migrating-1-0
The first error I'm getting is as such:
The problem is discord_client.py line 91 as shown in the error:
if message.channel.is_private:
This is old and apparently should be replaced with something like:
if message.channel.isinstance(channel, discord.abc.PrivateChannel)
But doesn't seem to be working in any way I try.. I'm pretty meh at writing code, I usually do disassembly so I'm using this program you made as a bit of practise :)
I'm going to keep working on a fix in my fork and I'll update this issue thread if I find one
-IneptV
The text was updated successfully, but these errors were encountered: