1 2 3 4 5 6 7 8 9 10 11 12 13 14
use common::serde::{Deserialize, Serialize}; use twilight_gateway::Intents; #[derive(Serialize, Deserialize, Clone)] pub struct Config { pub token: String, pub intents: Intents } impl Default for Config { fn default() -> Self { Self { intents: Intents::empty(), token: String::default() } } }