diff --git a/src/events/guild.rs b/src/events/guild.rs index 8768b4d..b873a6a 100644 --- a/src/events/guild.rs +++ b/src/events/guild.rs @@ -75,6 +75,10 @@ pub async fn guild_delete( incomplete: &serenity::UnavailableGuild, full: Option<&serenity::Guild>, ) -> Result<()> { + if incomplete.unavailable { + return Ok(()); + } + data.guilds_db.delete(incomplete.id.into()).await?; let Some(guild) = full else { return Ok(()) };