diff --git a/cogs/mentor_requests.py b/cogs/mentor_requests.py index 48b5aea..6c5c01b 100644 --- a/cogs/mentor_requests.py +++ b/cogs/mentor_requests.py @@ -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"] ) @@ -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: @@ -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()