pub struct BoticordClient { /* private fields */ }
Expand description

You can use it to make it much easier to use the Boticord API.

Implementations

Constructs a new Client.

In BotiCord API v2 there are some changes with token. Read more here

Arguments
  • token - Your BotiCord token
  • version - Version of BotiCord API.

Constructs a new Client with ReqwestClient specified by user.

In BotiCord API v2 there are some changes with token. Read more here

Arguments
  • client - Your custom ReqwestClient
  • token - Your BotiCord token
  • version - Version of BotiCord API

Get information about a specific bot.

Arguments
  • bot - Id of bot.

Get information about a specific server.

Arguments
  • server - Id of server.

Get information about a specific user.

Arguments
  • user - Id of user.

Get Vec of bot’s comments.

Arguments
  • bot - Id of bot.

Get Vec of server’s comments.

Arguments
  • server - Id of server.

Get Vec of user’s comments.

Arguments
  • user - Id of user.

Get Vec of user’s bots.

Arguments
  • user - Id of user.

Get Vec of shorted by current user links

Get Vec of shorted by current user links with the provided code

Arguments
  • shortener_body - Short information about a link, that we will search.

Creates new shorted link

Arguments
  • shortener_body - Information about link we will create.

Deletes shorted link

Arguments
  • shortener_body - Information about link we will delete.

Post current bot’s stats.

How to set BotStats? (example)
Arguments
  • stats - Stats that we will post
Examples
use boticordrs::types::{BotStats};

let stats = BotStats{servers: 2514, shards: 3, users: 338250};

Post Server Stats Method.

Remember, that only Boticord-Service Bots can do it in global, other will get an 403 error. (but it may works for custom bots, but you need a special API-token)

Arguments
  • stats - Stats that we will post

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more