aboutsummaryrefslogtreecommitdiff
path: root/docs/index.rst
diff options
context:
space:
mode:
authorkhazhyk <[email protected]>2019-04-07 22:56:54 -0700
committerkhazhyk <[email protected]>2019-04-07 23:03:01 -0700
commit7845bfb79bcff250f5c3da6a802103550e890c33 (patch)
tree19340fa8519a978c6d517a070e7ccf004d836e3d /docs/index.rst
parentsimplify AuditLogIterator ordering (diff)
downloaddiscord.py-7845bfb79bcff250f5c3da6a802103550e890c33.tar.xz
discord.py-7845bfb79bcff250f5c3da6a802103550e890c33.zip
terminate iterators immediately once out of data
if len(data) < 100, either limit was less than 100, or we ran out of results, in both cases, we should terminate the lookup. This fixes, e.g., hangs in audit_logs(limit=999999), and will reduce the number of fetch calls for any case where limit is greater than the number of results. (Prior, would just kinda loop calling audit-logs)
Diffstat (limited to 'docs/index.rst')
0 files changed, 0 insertions, 0 deletions