mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-03 18:42:43 +00:00
Fix TextChannel.purge not working.
This commit is contained in:
parent
3bd0c2120c
commit
ea078f1c68
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user