diff options
| author | Austin Hellyer <[email protected]> | 2016-11-25 08:33:15 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-25 08:33:15 -0800 |
| commit | e75f30b6dedf366d72d8d56b44fdbe191961fa72 (patch) | |
| tree | 46f2a507d0865078e352769729c756592368b88e /src/model/user.rs | |
| parent | Allow compiling with only either cache or methods (diff) | |
| download | serenity-e75f30b6dedf366d72d8d56b44fdbe191961fa72.tar.xz serenity-e75f30b6dedf366d72d8d56b44fdbe191961fa72.zip | |
Rename the `http` module to `rest`
Diffstat (limited to 'src/model/user.rs')
| -rw-r--r-- | src/model/user.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/user.rs b/src/model/user.rs index bedf696..4201bd2 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -20,7 +20,7 @@ use super::Message; #[cfg(feature = "methods")] use time::Timespec; #[cfg(feature = "methods")] -use ::client::http; +use ::client::rest; #[cfg(feature = "cache")] use ::client::CACHE; @@ -76,14 +76,14 @@ impl User { .insert("recipient_id", self.id.0) .build(); - try!(http::create_private_channel(map)).id + try!(rest::create_private_channel(map)).id } } else { let map = ObjectBuilder::new() .insert("recipient_id", self.id.0) .build(); - try!(http::create_private_channel(map)).id + try!(rest::create_private_channel(map)).id }}; let map = ObjectBuilder::new() @@ -92,7 +92,7 @@ impl User { .insert("tts", false) .build(); - http::send_message(private_channel_id.0, map) + rest::send_message(private_channel_id.0, map) } /// Check if a user has a [`Role`]. This will retrieve the |