Skip to content

Commit f0e2027

Browse files
NeloBlivionLulalaby
authored andcommitted
Respect limit argument in Guild.bans()
1 parent b372330 commit f0e2027

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

discord/iterators.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,8 @@ async def fill_bans(self):
722722
if not data:
723723
# no data, terminate
724724
return
725+
if self.limit:
726+
self.limit -= self.retrieve
725727

726728
if len(data) < 1000:
727729
self.limit = 0 # terminate loop

0 commit comments

Comments
 (0)