lunarflu HF staff commited on
Commit
f6d2498
1 Parent(s): 7e7c9c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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