Skip to content

Commit

Permalink
history is a async generator now
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiDuncan committed Jan 3, 2023
1 parent a419149 commit c2ff793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sizebot/cogs/thistracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async def on_message(self, m):
return
if isAgreementMessage(m.content):
channel = m.channel
messages = await channel.history(limit=100).flatten()
messages = [m async for m in channel.history(limit=100)]
if findLatestNonThis(messages).author.id == m.author.id:
return
tracker = ThisTracker.load()
Expand Down

0 comments on commit c2ff793

Please sign in to comment.