From ea078f1c6825460126b8cc95e246e7e04fed89d0 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 4 Jul 2017 21:59:44 -0400 Subject: [PATCH] Fix TextChannel.purge not working. --- discord/channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/channel.py b/discord/channel.py index 4facc9c25..1e885ee6b 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: