aboutsummaryrefslogtreecommitdiff
path: root/src/model/channel
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-10-30 10:17:15 -0700
committerZeyla Hellyer <[email protected]>2017-10-30 10:19:24 -0700
commitdcac27168915b4f22745950ec0ef0c0af696774e (patch)
tree148e0a5b51ae8f60f3f4a89038120d4f432b6eb4 /src/model/channel
parentGuild::has_perms: use Guild::member_permissions (diff)
downloadserenity-dcac27168915b4f22745950ec0ef0c0af696774e.tar.xz
serenity-dcac27168915b4f22745950ec0ef0c0af696774e.zip
Rename `Guild::permissions_for`->`permissions_in`
Rename `Guild::permissions_for` to `Guild::permissions_in`, deprecating `Guild::permissions_for` which is only an inline method to `permissions_in`.
Diffstat (limited to 'src/model/channel')
-rw-r--r--src/model/channel/guild_channel.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/channel/guild_channel.rs b/src/model/channel/guild_channel.rs
index d6649b4..b7295fc 100644
--- a/src/model/channel/guild_channel.rs
+++ b/src/model/channel/guild_channel.rs
@@ -512,7 +512,7 @@ impl GuildChannel {
pub fn permissions_for<U: Into<UserId>>(&self, user_id: U) -> Result<Permissions> {
self.guild()
.ok_or_else(|| Error::Model(ModelError::GuildNotFound))
- .map(|g| g.read().unwrap().permissions_for(self.id, user_id))
+ .map(|g| g.read().unwrap().permissions_in(self.id, user_id))
}
/// Pins a [`Message`] to the channel.