diff options
| author | Rapptz <[email protected]> | 2017-07-04 10:45:38 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-07-04 10:45:38 -0400 |
| commit | e0f02f1775b2a239f626edf4cbab079c2319db3d (patch) | |
| tree | 33b1be431b0789a105aa6209255c7cf1de208eff /discord/abc.py | |
| parent | handle Game.name being None (diff) | |
| download | discord.py-e0f02f1775b2a239f626edf4cbab079c2319db3d.tar.xz discord.py-e0f02f1775b2a239f626edf4cbab079c2319db3d.zip | |
Rename AsyncIterator.get to next to prevent shadowing.
Diffstat (limited to 'discord/abc.py')
| -rw-r--r-- | discord/abc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py index 2b05c83c..29bc65b3 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -872,7 +872,7 @@ class Messageable(metaclass=abc.ABCMeta): iterator = channel.history(limit=200) while True: try: - message = yield from iterator.get() + message = yield from iterator.next() except discord.NoMoreItems: break else: |