Browse Source

Fix TextChannel.purge not working.

pull/631/head
Rapptz 8 years ago
parent
commit
ea078f1c68
  1. 2
      discord/channel.py

2
discord/channel.py

@ -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:

Loading…
Cancel
Save