File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -118,9 +118,9 @@ async def _fetch_documents_from_channel(
118
118
start_time = discord_epoch
119
119
120
120
# NOTE: limit=None is the correct way to fetch all messages and threads with pagination
121
- # The discord package erroneously uses limit for both pagination AND number of results.
122
- # This causes the history and archived_threads methods to return 100 results even if there are more results within the filters.
123
- # Pagination is handled automatically (100 results at a time) when limit=None.
121
+ # The discord package erroneously uses limit for both pagination AND number of results
122
+ # This causes the history and archived_threads methods to return 100 results even if there are more results within the filters
123
+ # Pagination is handled automatically (100 results at a time) when limit=None
124
124
125
125
async for channel_message in channel .history (
126
126
limit = None ,
@@ -161,7 +161,7 @@ async def _fetch_documents_from_channel(
161
161
162
162
async for archived_thread in channel .archived_threads (
163
163
limit = None ,
164
- ):
164
+ ):
165
165
async for thread_message in archived_thread .history (
166
166
limit = None ,
167
167
after = start_time ,
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ ignore_errors = true
24
24
25
25
[tool .ruff ]
26
26
line-length = 130
27
+ target-version = " py311"
27
28
28
29
[tool .ruff .lint ]
29
30
ignore = []
You can’t perform that action at this time.
0 commit comments