blob: 87596f64a8ff1b753ac7b4a3f1c927682e68d943 (
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
|
macro_rules! try_uri {
($url:expr) => {{
match ::hyper::Uri::from_str($url) {
Ok(v) => v,
Err(why) => return Box::new(::futures::future::err(::Error::Uri(why))),
}
}};
}
macro_rules! api {
($e:expr) => {
concat!("https://discordapp.com/api/v6", $e)
};
($e:expr, $($rest:tt)*) => {
format!(api!($e), $($rest)*)
};
}
macro_rules! status {
($e:expr) => {
concat!("https://status.discordapp.com/api/v2", $e)
}
}
|