diff options
| author | Rapptz <[email protected]> | 2017-07-04 21:59:44 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-07-04 21:59:44 -0400 |
| commit | ea078f1c6825460126b8cc95e246e7e04fed89d0 (patch) | |
| tree | b711de08a706ae0285ec78819a9c15432b3fd442 | |
| parent | Implement a LRU cache for private channels. (diff) | |
| download | discord.py-ea078f1c6825460126b8cc95e246e7e04fed89d0.tar.xz discord.py-ea078f1c6825460126b8cc95e246e7e04fed89d0.zip | |
Fix TextChannel.purge not working.
| -rw-r--r-- | discord/channel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/channel.py b/discord/channel.py index 4facc9c2..1e885ee6 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -280,7 +280,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): while True: try: - msg = yield from iterator.get() + msg = yield from iterator.next() except NoMoreItems: # no more messages to poll if count >= 2: |