diff options
| author | acdenisSK <[email protected]> | 2017-07-14 00:29:28 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-07-14 00:29:28 +0200 |
| commit | ca0f113324c1ed64a8646c42ed742dd8021fbccd (patch) | |
| tree | 69dbf3e9d1b39f2553d0ce8280e1adb49e7c3865 /src/model/channel/guild_channel.rs | |
| parent | Provide the command into the checks (diff) | |
| download | serenity-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.rs | 5 |
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 |