diff options
Diffstat (limited to 'exes/gateway/src/config.rs')
| -rw-r--r-- | exes/gateway/src/config.rs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/exes/gateway/src/config.rs b/exes/gateway/src/config.rs index 4c62de6..923ab30 100644 --- a/exes/gateway/src/config.rs +++ b/exes/gateway/src/config.rs @@ -2,13 +2,20 @@ use shared::serde::{Deserialize, Serialize}; use twilight_gateway::Intents; #[derive(Serialize, Deserialize, Clone)] -pub struct Config { +pub struct GatewayConfig { pub token: String, - pub intents: Intents + pub intents: Intents, + pub shard: u64, + pub shard_total: u64, } -impl Default for Config { +impl Default for GatewayConfig { fn default() -> Self { - Self { intents: Intents::empty(), token: String::default() } + Self { + intents: Intents::empty(), + token: String::default(), + shard_total: 1, + shard: 1, + } } } |
