Struct discord_bots::Client

source ·
pub struct Client {
    pub token: String,
    pub client: Client,
}
Expand description

The dbl client

Used for bot specific functions

Fields

token: Stringclient: Client

Implementations

Initialize a new dbl client from a token: https://discordbots.org/api/docs#reference

Get the last 1k votes from your bot

Check if a user has voted

Get bot info

Get bot stats

Post bot stats

Check the docs on PostBotStats for more info

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.