aboutsummaryrefslogtreecommitdiff
path: root/src/model/channel/guild_channel.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-14 00:29:28 +0200
committeracdenisSK <[email protected]>2017-07-14 00:29:28 +0200
commitca0f113324c1ed64a8646c42ed742dd8021fbccd (patch)
tree69dbf3e9d1b39f2553d0ce8280e1adb49e7c3865 /src/model/channel/guild_channel.rs
parentProvide the command into the checks (diff)
downloadserenity-ca0f113324c1ed64a8646c42ed742dd8021fbccd.tar.xz
serenity-ca0f113324c1ed64a8646c42ed742dd8021fbccd.zip
Add `ChannelId,PrivateChannel,GuildChannel::name` functions
Diffstat (limited to 'src/model/channel/guild_channel.rs')
-rw-r--r--src/model/channel/guild_channel.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/model/channel/guild_channel.rs b/src/model/channel/guild_channel.rs
index a506187..995586e 100644
--- a/src/model/channel/guild_channel.rs
+++ b/src/model/channel/guild_channel.rs
@@ -400,6 +400,11 @@ impl GuildChannel {
self.id.messages(f)
}
+ /// Returns the name of the guild channel.
+ pub fn name(&self) -> &str {
+ &self.name
+ }
+
/// Calculates the permissions of a member.
///
/// The Id of the argument must be a [`Member`] of the [`Guild`] that the