Skip to content

Commit

Permalink
fix bug that would cause the unavailable state to not be updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erk- committed May 4, 2024
1 parent 3629630 commit ab6be28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twilight-cache-inmemory/src/event/guild.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl<CacheModels: CacheableModels> UpdateCache<CacheModels> 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);
}
}
}
Expand Down

0 comments on commit ab6be28

Please sign in to comment.