Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -202,7 +202,7 @@ async def count_threads(ctx, time: int):
|
|
202 |
for channel in ctx.guild.text_channels:
|
203 |
for thread in channel.threads:
|
204 |
print(thread.name)
|
205 |
-
async for message in thread.history(limit=None):
|
206 |
thread_message_count += 1
|
207 |
|
208 |
|
|
|
202 |
for channel in ctx.guild.text_channels:
|
203 |
for thread in channel.threads:
|
204 |
print(thread.name)
|
205 |
+
async for message in thread.history(limit=None, after=start_date, before=end_date):
|
206 |
thread_message_count += 1
|
207 |
|
208 |
|