aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: