aboutsummaryrefslogtreecommitdiff
path: root/src/prelude.rs
blob: 3c9ef85b2b20ef8e2e823926ff1bd15c2df8c0b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//! 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:
//!
//! ```rust
//! use serenity::prelude::*;
//! ```
//!
//! [`serenity::Error`]: ../enum.Error.html

pub use ::error::{Error as SerenityError};
pub use ::model::Mentionable;

#[cfg(feature="client")]
pub use ::client::{Client, ClientError as ClientError};
#[cfg(feature="gateway")]
pub use ::gateway::GatewayError;
#[cfg(feature="http")]
pub use ::http::HttpError;
#[cfg(feature="model")]
pub use ::model::ModelError;
#[cfg(feature="voice")]
pub use ::voice::VoiceError;