diff options
Diffstat (limited to 'exes/cache/src/managers/integrations.rs')
| -rw-r--r-- | exes/cache/src/managers/integrations.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/exes/cache/src/managers/integrations.rs b/exes/cache/src/managers/integrations.rs new file mode 100644 index 0000000..99d292e --- /dev/null +++ b/exes/cache/src/managers/integrations.rs @@ -0,0 +1,28 @@ +use twilight_model::gateway::event::DispatchEvent; + +use crate::CacheSourcedEvents; + +use super::CacheManager; +use std::future::Future; + + +#[derive(Default)] +pub struct Integrations {} +impl CacheManager for Integrations { + fn handle( + &self, + event: twilight_model::gateway::event::DispatchEvent, + ) -> std::pin::Pin<Box<dyn Future<Output = crate::CacheSourcedEvents>>> { + Box::pin(async move { + match event { + DispatchEvent::IntegrationCreate(_) => {} + DispatchEvent::IntegrationDelete(_) => {} + DispatchEvent::IntegrationUpdate(_) => {} + DispatchEvent::InteractionCreate(_) => {} + _ => unreachable!(), + }; + + CacheSourcedEvents::None + }) + } +} |
