summaryrefslogtreecommitdiff
path: root/exes/cache/src/managers/automoderation.rs
blob: 4a1b11923fae4934be79485a2ccf25501f58e699 (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
use twilight_model::gateway::event::DispatchEvent;

use crate::CacheSourcedEvents;

use super::CacheManager;
use std::future::Future;

#[derive(Default)]
pub struct Automoderation {}
impl CacheManager for Automoderation {
    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::AutoModerationRuleCreate(_) => {}
                DispatchEvent::AutoModerationRuleDelete(_) => {}
                DispatchEvent::AutoModerationRuleUpdate(_) => {}
                _ => unreachable!(),
            };

            CacheSourcedEvents::None
        })
    }
}