Skip to content

Commit

Permalink
Offset amount of archived threads to fetch by active thread count in …
Browse files Browse the repository at this point in the history
…'showcase rank' command in 'showcase' extension
  • Loading branch information
Mega-JC committed Jun 27, 2024
1 parent 2e834cc commit 42521ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pcbot/exts/showcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ async def thread_triple(thread: discord.Thread):
[
thread
async for thread in channel.archived_threads(
limit=amount,
limit=amount
- len(channel.threads), # subtract active threads
before=before,
)
],
Expand Down

0 comments on commit 42521ff

Please sign in to comment.