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
30
31
32
33
34
35
36
#![warn(missing_docs)]
extern crate futures;
extern crate hyper;
extern crate hyper_tls;
extern crate tokio;
extern crate tokio_tungstenite;
extern crate url;
#[macro_use]
extern crate serde_json;
#[macro_use]
extern crate serde_derive;
#[macro_use]
extern crate try_future;
#[macro_use]
extern crate quick_error;
pub mod builder;
mod client;
mod error;
pub mod events;
pub use builder::{EmbedBuilder, MessageBuilder};
pub use client::{Client, GatewayConnection};
pub use error::Error;
pub use events::Event;
#[derive(Deserialize, Serialize)]
struct DiscordBasePayload<I> {
pub op: u8,
pub d: I,
}