Geoffrey-rs/geoffrey_bot/src/context.rs

13 lines
275 B
Rust
Raw Normal View History

use crate::configs::GeoffreyBotConfig;
use serenity::prelude::TypeMapKey;
#[derive(Debug, Clone)]
pub struct GeoffreyContext {
pub http_client: reqwest::Client,
pub cfg: GeoffreyBotConfig,
}
impl TypeMapKey for GeoffreyContext {
type Value = GeoffreyContext;
}