aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-07-04 21:59:44 -0400
committerRapptz <[email protected]>2017-07-04 21:59:44 -0400
commitea078f1c6825460126b8cc95e246e7e04fed89d0 (patch)
treeb711de08a706ae0285ec78819a9c15432b3fd442
parentImplement a LRU cache for private channels. (diff)
downloaddiscord.py-ea078f1c6825460126b8cc95e246e7e04fed89d0.tar.xz
discord.py-ea078f1c6825460126b8cc95e246e7e04fed89d0.zip
Fix TextChannel.purge not working.
-rw-r--r--discord/channel.py2
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: