Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cogs/mentor_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
)
PROM_TASK_QUEUE = prometheus_client.Gauge("mentor_requests_task_queue", "size of the task queue")
PROM_EXERCISM_INTERVAL = prometheus_client.Gauge(
"mentor_requests_exercism_interval", "delay between refreshes", ["track"]
"mentor_request_exercism_interval", "delay between refreshes", ["track"]
)


Expand Down Expand Up @@ -203,7 +203,7 @@ async def fetch_discord_thread(self, track: str) -> None:
thread = await self.get_thread(track)
messages = {}
await self.unarchive(thread)
async for message in thread.history():
async for message in thread.history(limit=None):
if message.author != thread.owner:
continue
if message == thread.starter_message:
Expand Down Expand Up @@ -278,7 +278,7 @@ async def load_data(self) -> None:
assert isinstance(channel, discord.TextChannel), f"{channel} is not a TextChannel."

self.threads = {}
async for message in channel.history():
async for message in channel.history(limit=None):
if not message.thread:
continue
thread = await message.fetch_thread()
Expand Down