tulpje_cache/event/
presence.rs

1use twilight_model::gateway::payload::incoming::PresenceUpdate;
2
3use crate::{Cache, Error, UpdateCache};
4
5impl UpdateCache for PresenceUpdate {
6    async fn update(&self, cache: &Cache) -> Result<(), Error> {
7        cache.cache_presence(self.guild_id, self.0.clone()).await
8    }
9}