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.

The gateway to connect to.

Trait Implementations

impl Clone for BotGateway
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for BotGateway
[src]

[src]

Formats the value using the given formatter.