aboutsummaryrefslogtreecommitdiff
path: root/src/model/id.rs
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/model/id.rs
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/model/id.rs')
-rw-r--r--src/model/id.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/model/id.rs b/src/model/id.rs
index d29fa2a..d7d131a 100644
--- a/src/model/id.rs
+++ b/src/model/id.rs
@@ -3,7 +3,7 @@ use super::*;
#[cfg(all(feature = "cache", feature = "methods"))]
use ::client::CACHE;
#[cfg(feature = "methods")]
-use ::client::http;
+use ::client::rest;
#[cfg(feature = "methods")]
use ::internal::prelude::*;
@@ -24,7 +24,7 @@ impl ChannelId {
}
}}
- http::get_channel(self.0)
+ rest::get_channel(self.0)
}
/// Returns a [`Mention`] which will link to the [`Channel`].
@@ -45,7 +45,7 @@ impl ChannelId {
/// [Manage Webhooks]: permissions/constant.MANAGE_WEBHOOKS.html
#[cfg(feature="methods")]
pub fn webhooks(&self) -> Result<Vec<Webhook>> {
- http::get_channel_webhooks(self.0)
+ rest::get_channel_webhooks(self.0)
}
}
@@ -90,7 +90,7 @@ impl GuildId {
/// all data with a guild retrieval.
#[cfg(feature="methods")]
pub fn get(&self) -> Result<PartialGuild> {
- http::get_guild(self.0)
+ rest::get_guild(self.0)
}
/// Mentions the [`Guild`]'s default channel.
@@ -117,7 +117,7 @@ impl GuildId {
/// [Manage Webhooks]: permissions/constant.MANAGE_WEBHOOKS.html
#[cfg(feature="methods")]
pub fn webhooks(&self) -> Result<Vec<Webhook>> {
- http::get_guild_webhooks(self.0)
+ rest::get_guild_webhooks(self.0)
}
}
@@ -229,6 +229,6 @@ impl WebhookId {
/// [Manage Webhooks]: permissions/constant.MANAGE_WEBHOOKS.html
#[cfg(feature="methods")]
pub fn webhooks(&self) -> Result<Webhook> {
- http::get_webhook(self.0)
+ rest::get_webhook(self.0)
}
}