noob/
lib.rs

1//! Library for interacting with the Discord API and Gateway, especially for bots, using hyper/tokio.
2
3#![warn(missing_docs)]
4
5extern crate futures;
6extern crate hyper;
7extern crate hyper_tls;
8extern crate tokio;
9extern crate tokio_tungstenite;
10extern crate url;
11#[macro_use]
12extern crate serde_json;
13#[macro_use]
14extern crate serde_derive;
15#[macro_use]
16extern crate try_future;
17#[macro_use]
18extern crate quick_error;
19
20/// Objects for sending messages
21pub mod builder;
22mod client;
23mod error;
24/// Events and related objects
25pub mod events;
26
27pub use builder::{EmbedBuilder, MessageBuilder};
28pub use client::{Client, GatewayConnection};
29pub use error::Error;
30pub use events::Event;
31
32#[derive(Deserialize, Serialize)]
33struct DiscordBasePayload<I> {
34    pub op: u8,
35    pub d: I,
36}