serenity 0.11.5

A Rust library for the Discord API.
Documentation
//! Mappings of objects received from the API, with optional helper methods for
//! ease of use.
//!
//! Models can optionally have additional helper methods compiled, by enabling
//! the `model` feature.
//!
//! Normally you can import models through the sub-modules:
//!
//! ```rust,no_run
//! use serenity::model::channel::{ChannelType, GuildChannel, Message};
//! use serenity::model::id::{ChannelId, GuildId};
//! use serenity::model::user::User;
//! ```
//!
//! This can get a bit tedious - especially with a large number of imports - so
//! this can be simplified by simply glob importing everything from the prelude:
//!
//! ```rust,no_run
//! use serenity::model::prelude::*;
//! ```

#[macro_use]
mod utils;

pub mod application;
pub mod channel;
pub mod connection;
pub mod error;
pub mod event;
pub mod gateway;
pub mod guild;
pub mod id;
#[deprecated(note = "use `model::application::interaction`")]
pub mod interactions;
pub mod invite;
pub mod mention;
pub mod misc;
pub mod permissions;
pub mod prelude;
pub mod sticker;
pub mod timestamp;
pub mod user;
pub mod voice;
pub mod webhook;

#[deprecated(note = "use `model::application::oauth`")]
pub mod oauth2 {
    #[deprecated(note = "use `model::application::oauth::Scope`")]
    pub type OAuth2Scope = super::application::oauth::Scope;
}

use std::collections::HashMap;
use std::result::Result as StdResult;

use serde::de::Visitor;
use serde::{Deserialize, Deserializer};
#[cfg(feature = "voice-model")]
pub use serenity_voice_model as voice_gateway;
pub use timestamp::Timestamp;

pub use self::error::Error as ModelError;
pub use self::permissions::Permissions;
use crate::internal::prelude::*;
#[cfg(feature = "utils")]
use crate::utils::Colour;