blob: 8e717241e0b9d9c40f4931ee19f0ef25db6314cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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
})
}
}
|