blob: 6e142c829bc922969f33060557098b3fb2d3b8a7 (
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
28
29
30
31
32
33
|
use twilight_model::gateway::event::DispatchEvent;
use crate::CacheSourcedEvents;
use super::CacheManager;
use std::future::Future;
#[derive(Default)]
pub struct Guilds {}
impl CacheManager for Guilds {
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::GuildCreate(_) => {}
DispatchEvent::GuildDelete(_) => {}
DispatchEvent::UnavailableGuild(_) => {}
DispatchEvent::GuildUpdate(_) => {}
DispatchEvent::WebhooksUpdate(_) => {}
DispatchEvent::GuildStickersUpdate(_) => {}
DispatchEvent::GuildEmojisUpdate(_) => {}
DispatchEvent::VoiceServerUpdate(_) => {}
DispatchEvent::GuildIntegrationsUpdate(_) => {}
DispatchEvent::CommandPermissionsUpdate(_) => {}
_ => unreachable!(),
};
CacheSourcedEvents::None
})
}
}
|