diff options
| author | Austin Hellyer <[email protected]> | 2016-11-25 20:06:47 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-25 20:06:47 -0800 |
| commit | adde653dc4797faf8094816da46f8e4430b33c98 (patch) | |
| tree | 229acc0e3d130bb44d53f09fef0716f2c16915af /src/utils | |
| parent | Fix permission check on Message::delete (diff) | |
| download | serenity-adde653dc4797faf8094816da46f8e4430b33c98.tar.xz serenity-adde653dc4797faf8094816da46f8e4430b33c98.zip | |
Rename PublicChannel to GuildChannel
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/builder/edit_channel.rs | 8 | ||||
| -rw-r--r-- | src/utils/message_builder.rs | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/utils/builder/edit_channel.rs b/src/utils/builder/edit_channel.rs index 7225902..1fd1b5c 100644 --- a/src/utils/builder/edit_channel.rs +++ b/src/utils/builder/edit_channel.rs @@ -1,12 +1,12 @@ use serde_json::builder::ObjectBuilder; use std::default::Default; -/// A builder to edit a [`PublicChannel`] for use via one of a couple methods. +/// A builder to edit a [`GuildChannel`] for use via one of a couple methods. /// /// These methods are: /// /// - [`Context::edit_channel`] -/// - [`PublicChannel::edit`] +/// - [`GuildChannel::edit`] /// /// Defaults are not directly provided by the builder itself. /// @@ -22,8 +22,8 @@ use std::default::Default; /// ``` /// /// [`Context::edit_channel`]: ../client/struct.Context.html#method.edit_channel -/// [`PublicChannel`]: ../model/struct.PublicChannel.html -/// [`PublicChannel::edit`]: ../model/struct.PublicChannel.html#method.edit +/// [`GuildChannel`]: ../model/struct.GuildChannel.html +/// [`GuildChannel::edit`]: ../model/struct.GuildChannel.html#method.edit pub struct EditChannel(pub ObjectBuilder); impl EditChannel { diff --git a/src/utils/message_builder.rs b/src/utils/message_builder.rs index a9a88ae..e30db05 100644 --- a/src/utils/message_builder.rs +++ b/src/utils/message_builder.rs @@ -53,7 +53,7 @@ impl MessageBuilder { self.0 } - /// Mentions the [`PublicChannel`] in the built message. + /// Mentions the [`GuildChannel`] in the built message. /// /// This accepts anything that converts _into_ a [`ChannelId`]. Refer to /// `ChannelId`'s documentation for more information. @@ -62,7 +62,7 @@ impl MessageBuilder { /// how this is formatted. /// /// [`ChannelId`]: ../model/struct.ChannelId.html - /// [`PublicChannel`]: ../model/struct.PublicChannel.html + /// [`GuildChannel`]: ../model/struct.GuildChannel.html /// [Display implementation]: ../model/struct.ChannelId.html#method.fmt-1 pub fn channel<C: Into<ChannelId>>(mut self, channel: C) -> Self { self.0.push_str(&format!("{}", channel.into())); |