From ab6be28f105f0cc898786b99f110c7b00b92022d Mon Sep 17 00:00:00 2001 From: Valdemar Erk Date: Sat, 4 May 2024 11:12:52 +0200 Subject: [PATCH] fix bug that would cause the unavailable state to not be updated. --- twilight-cache-inmemory/src/event/guild.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twilight-cache-inmemory/src/event/guild.rs b/twilight-cache-inmemory/src/event/guild.rs index 74e8526248b..8d8c9b15d44 100644 --- a/twilight-cache-inmemory/src/event/guild.rs +++ b/twilight-cache-inmemory/src/event/guild.rs @@ -139,7 +139,7 @@ impl UpdateCache for GuildCreate { match self { GuildCreate::Available(g) => cache.cache_guild(g.clone()), GuildCreate::Unavailable(g) => { - cache.unavailable_guilds.insert(g.id); + cache.unavailable_guild(g.id); } } }