Struct serenity::model::BotGateway
[−]
[src]
pub struct BotGateway {
pub shards: u64,
pub url: String,
}A representation of the data retrieved from the bot gateway endpoint.
This is different from the [Gateway], as this includes the number of
shards that Discord recommends to use for a bot user.
This is only applicable to bot users.
Fields
The number of shards that is recommended to be used by the current bot user.
url: String
The gateway to connect to.
Trait Implementations
impl Clone for BotGateway[src]
fn clone(&self) -> BotGateway[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more