aboutsummaryrefslogtreecommitdiff
path: root/src/ext
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-25 08:33:15 -0800
committerAustin Hellyer <[email protected]>2016-11-25 08:33:15 -0800
commite75f30b6dedf366d72d8d56b44fdbe191961fa72 (patch)
tree46f2a507d0865078e352769729c756592368b88e /src/ext
parentAllow compiling with only either cache or methods (diff)
downloadserenity-e75f30b6dedf366d72d8d56b44fdbe191961fa72.tar.xz
serenity-e75f30b6dedf366d72d8d56b44fdbe191961fa72.zip
Rename the `http` module to `rest`
Diffstat (limited to 'src/ext')
-rw-r--r--src/ext/cache/mod.rs6
-rw-r--r--src/ext/framework/configuration.rs4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/ext/cache/mod.rs b/src/ext/cache/mod.rs
index 4e46188..e819eea 100644
--- a/src/ext/cache/mod.rs
+++ b/src/ext/cache/mod.rs
@@ -8,7 +8,7 @@ use ::model::*;
/// some data from the event is possible.
///
/// This acts as a cache, to avoid making requests over the REST API through the
-/// [`http`] module where possible. All fields are public, and do not have
+/// [`rest`] module where possible. All fields are public, and do not have
/// getters, to allow you more flexibility with the stored data. However, this
/// allows data to be "corrupted", and _may or may not_ cause misfunctions
/// within the library. Mutate data at your own discretion.
@@ -23,7 +23,7 @@ use ::model::*;
///
/// This allows you to only need to perform the `Context::get_channel` call,
/// and not need to first search through the cache - and if not found - _then_
-/// perform an HTTP request through the Context or `http` module.
+/// perform an HTTP request through the Context or `rest` module.
///
/// Additionally, note that some information received through events can _not_
/// be retrieved through the REST API. This is information such as [`Role`]s in
@@ -34,7 +34,7 @@ use ::model::*;
/// [`Context::get_channel`]: ../../client/struct.Context.html#method.get_channel
/// [`Guild`]: ../../model/struct.Guild.html
/// [`Role`]: ../../model/struct.Role.html
-/// [`http`]: ../../client/http/index.html
+/// [`rest`]: ../../client/rest/index.html
#[derive(Debug, Clone)]
pub struct Cache {
/// A map of the currently active calls that the current user knows about,
diff --git a/src/ext/framework/configuration.rs b/src/ext/framework/configuration.rs
index 4b0fc48..6dd4fd2 100644
--- a/src/ext/framework/configuration.rs
+++ b/src/ext/framework/configuration.rs
@@ -1,5 +1,5 @@
use std::default::Default;
-use ::client::http;
+use ::client::rest;
pub struct Configuration {
#[doc(hidden)]
@@ -53,7 +53,7 @@ impl Configuration {
return self;
}
- if let Ok(current_user) = http::get_current_user() {
+ if let Ok(current_user) = rest::get_current_user() {
self.on_mention = Some(vec![
format!("<@{}>", current_user.id), // Regular mention
format!("<@!{}>", current_user.id), // Nickname mention