tulpje_framework/context/
event_context.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::sync::Arc;

use twilight_gateway::Event;
use twilight_http::Client;
use twilight_model::id::{marker::ApplicationMarker, Id};

use crate::Metadata;

#[derive(Clone, Debug)]
pub struct EventContext<T: Clone + Send + Sync> {
    pub meta: Metadata,
    pub application_id: Id<ApplicationMarker>,
    pub services: Arc<T>,
    pub client: Arc<Client>,

    pub event: Event,
}