Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when running dban #1

Open
JohhnnyCash opened this issue Apr 28, 2019 · 1 comment
Open

Issue when running dban #1

JohhnnyCash opened this issue Apr 28, 2019 · 1 comment

Comments

@JohhnnyCash
Copy link

Ignoring exception in on_message
Traceback (most recent call last):
File "C:\Users\mypc\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\client.py", line 255, in _run_event
await coro(*args, **kwargs)
File "C:\Users\mypc\Desktop\dban.py", line 38, in on_message
async for msg in client.logs_from(message.channel,limit=9999):
AttributeError: 'Client' object has no attribute 'logs_from'

@kdog101
Copy link

kdog101 commented May 2, 2019

The issue has to do with discord.py and their new migration to version 1.0.1 which breaks this script

You could remake this script but even I couldn’t figure it out, more information is here.

https://discordpy.readthedocs.io/en/latest/migrating.html

Or you can simply uninstall discord.py and use the older 1.0.0 version here
https://github.com/Rapptz/discord.py/releases/tag/v1.0.0

Simply extract the folder, cd to the folder and type python3 pip uninstall discord.py then
type python3.5 setup.py install
Change the line in the script where it says client.server to client.guilds and it will print out the names of the servers you are in and it will work
Note at the moment this only works on windows with python 3.5.4
I have tried replicating this “fix” on arch Linux and it still produces the same issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants