Rapptz / discord.py

An API wrapper for Discord written in Python.
http://discordpy.rtfd.org/en/latest
MIT License
14.7k stars 3.74k forks source link

How do I fix my deletion script so that it works with 3.7? #1913

Closed ghost closed 5 years ago

Phxntxm commented 5 years ago

It looks to me like you are using discord.py's rewrite version...not the async version. logs_from does not exist in rewrite, it's channel.history:

https://discordpy.readthedocs.io/en/rewrite/api.html#discord.abc.Messageable.history

Harmon758 commented 5 years ago

See the Migrating to v1.0 section of the documentation, specifically, the Models are Stateful and Asynchronous Iterators subsections.

For future questions like this, you should join either the official discord.py server or the Discord API server for help, as the README recommends.