Fix TextChannel.purge not working.

This commit is contained in:
Rapptz 2017-07-04 21:59:44 -04:00
parent 3bd0c2120c
commit ea078f1c68

View File

@ -280,7 +280,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
while True: while True:
try: try:
msg = yield from iterator.get() msg = yield from iterator.next()
except NoMoreItems: except NoMoreItems:
# no more messages to poll # no more messages to poll
if count >= 2: if count >= 2: