panda 0.2.1

An async Rust library for Discord
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Config contains all customizable options of the Client
pub struct Config {
    pub(crate) gateway_large_treshold: u8,
    pub(crate) gateway_guilds_subscriptions: bool,
    pub(crate) gateway_shard_id: u64,
    pub(crate) gateway_num_shards: u64,
}

impl Config {
    pub fn new_default() -> Config {
        Config {
            gateway_large_treshold: 50,
            gateway_guilds_subscriptions: true,
            gateway_shard_id: 0,
            gateway_num_shards: 1,
        }
    }
}