From 8f0c762637689dc7f1448df2cc1a13cc93fca59d Mon Sep 17 00:00:00 2001 From: Xiretza Date: Tue, 18 Jul 2023 20:19:25 +0000 Subject: [PATCH] Sync once on bot startup --- src/bot.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bot.rs b/src/bot.rs index b6fd24f..741a619 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -297,6 +297,8 @@ impl Bot { /// Runs the bot. This function does not return except in case of error. #[instrument(skip(self))] pub async fn run(mut self) -> Result { + self.client.sync_once(SyncSettings::default()).await?; + self.join_announce_rooms() .await .wrap_err("failed to join announcement rooms")?;