diff --git a/metricity/exts/event_listeners/_syncer_utils.py b/metricity/exts/event_listeners/_syncer_utils.py index 258a165..bbb0621 100644 --- a/metricity/exts/event_listeners/_syncer_utils.py +++ b/metricity/exts/event_listeners/_syncer_utils.py @@ -117,7 +117,8 @@ async def sync_channels(bot: Bot, guild: discord.Guild) -> None: if thread.parent.category.id in BotConfig.ignore_categories: continue else: - # This is a forum channel, not currently supported by Discord.py. Ignore it. + # This use to happen for forum channels, when not supported by Discord.py. + # This case should no longer be possible, but will be kept for future possibilities. continue if db_thread := await sess.get(models.Thread, str(thread.id)): @@ -130,6 +131,8 @@ async def sync_channels(bot: Bot, guild: discord.Guild) -> None: insert_thread(thread, sess) await sess.commit() + log.info("Thread synchronisation process complete, synchronising deleted threads") + await sync_thread_archive_state(guild) log.info("Thread synchronisation process complete, finished synchronising guild.") bot.channel_sync_in_progress.set()