Skip to main content

babyrite/
context.rs

1//! State shared by every event handler task.
2
3/// Clients the handlers need, shared behind an `Arc` across event tasks.
4pub struct BotContext {
5    /// Discord REST API client.
6    pub http: twilight_http::Client,
7    /// Shared client for raw.githubusercontent.com fetches.
8    pub github: reqwest::Client,
9}