diff options
| author | Austin Hellyer <[email protected]> | 2016-11-29 20:51:10 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-29 22:27:59 -0800 |
| commit | 93b990d8d1bc9df69b8e27a3db61da570822aad6 (patch) | |
| tree | 6305cf635df90681527a8e736f65ff19f21fd8bc /src/utils/macros.rs | |
| parent | Add more shiny readme badges (diff) | |
| download | serenity-93b990d8d1bc9df69b8e27a3db61da570822aad6.tar.xz serenity-93b990d8d1bc9df69b8e27a3db61da570822aad6.zip | |
Clean up the codebase
Diffstat (limited to 'src/utils/macros.rs')
| -rw-r--r-- | src/utils/macros.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/utils/macros.rs b/src/utils/macros.rs index d9026af..e8f74dd 100644 --- a/src/utils/macros.rs +++ b/src/utils/macros.rs @@ -19,11 +19,11 @@ macro_rules! request { ($route:expr, $method:ident, $url:expr) => {{ let client = HyperClient::new(); try!(request($route, || client - .$method(api_concat!($url)))) + .$method(api!($url)))) }}; } -macro_rules! cdn_concat { +macro_rules! cdn { ($e:expr) => { concat!("https://cdn.discordapp.com", $e) } @@ -37,12 +37,7 @@ macro_rules! api { }; } -macro_rules! api_concat { - ($e:expr) => { - concat!("https://discordapp.com/api/v6", $e) - } -} -macro_rules! status_concat { +macro_rules! status { ($e:expr) => { concat!("https://status.discordapp.com/api/v2", $e) } |