Fix TextChannel.purge not working.
This commit is contained in:
1 parent
3bd0c2120c
commit
ea078f1c68
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user