Expand description
A set of exports which can be helpful to use.
Note that the SerenityError
re-export is equivalent to
serenity::Error
, although is re-exported as a separate name to remove
likely ambiguity with other crate error enums.
Examples
Import all of the exports:
use serenity::prelude::*;
Re-exports
pub use crate::client::Client;
pub use crate::http::HttpError;
pub use crate::model::misc::Mentionable;
pub use crate::model::ModelError;
Structs
An asynchronous Mutex
-like type.
An asynchronous reader-writer lock.
Enums
An error returned from the Client
.
An error that occurred while attempting to deal with the gateway.
A common error enum returned by most of the library’s functionality within a
custom Result
.
Traits
The core trait for handling events by serenity.
This core trait for handling raw events
TypeMapKey is used to declare key types that are eligible for use
with TypeMap
.