aboutsummaryrefslogtreecommitdiff
path: root/src/builder/edit_channel.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2018-01-31 14:56:12 -0800
committerZeyla Hellyer <[email protected]>2018-01-31 14:56:56 -0800
commit8578d5fe6e3bdc2842cda9417c242169f93b1a99 (patch)
treeba5ce74c82510f5d3b6b490b09eb5e6d2de77ca1 /src/builder/edit_channel.rs
parentAdd create message builder example (#268) (diff)
downloadserenity-8578d5fe6e3bdc2842cda9417c242169f93b1a99.tar.xz
serenity-8578d5fe6e3bdc2842cda9417c242169f93b1a99.zip
Fix broken docs links caused by model mod changes
Fix broken links caused by the `model` module changes in v0.5.0, which split up the module into sub-modules for better organization.
Diffstat (limited to 'src/builder/edit_channel.rs')
-rw-r--r--src/builder/edit_channel.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/builder/edit_channel.rs b/src/builder/edit_channel.rs
index 2ea5707..b8d897b 100644
--- a/src/builder/edit_channel.rs
+++ b/src/builder/edit_channel.rs
@@ -17,8 +17,8 @@ use model::id::ChannelId;
/// }
/// ```
///
-/// [`GuildChannel`]: ../model/struct.GuildChannel.html
-/// [`GuildChannel::edit`]: ../model/struct.GuildChannel.html#method.edit
+/// [`GuildChannel`]: ../model/channel/struct.GuildChannel.html
+/// [`GuildChannel::edit`]: ../model/channel/struct.GuildChannel.html#method.edit
#[derive(Clone, Debug, Default)]
pub struct EditChannel(pub VecMap<&'static str, Value>);
@@ -27,7 +27,7 @@ impl EditChannel {
///
/// This is for [voice] channels only.
///
- /// [voice]: ../model/enum.ChannelType.html#variant.Voice
+ /// [voice]: ../model/channel/enum.ChannelType.html#variant.Voice
pub fn bitrate(mut self, bitrate: u64) -> Self {
self.0.insert("bitrate", Value::Number(Number::from(bitrate)));
@@ -56,7 +56,7 @@ impl EditChannel {
///
/// This is for [text] channels only.
///
- /// [text]: ../model/enum.ChannelType.html#variant.Text
+ /// [text]: ../model/channel/enum.ChannelType.html#variant.Text
pub fn topic(mut self, topic: &str) -> Self {
self.0.insert("topic", Value::String(topic.to_string()));
@@ -67,7 +67,7 @@ impl EditChannel {
///
/// This is for [voice] channels only.
///
- /// [voice]: ../model/enum.ChannelType.html#variant.Voice
+ /// [voice]: ../model/channel/enum.ChannelType.html#variant.Voice
pub fn user_limit(mut self, user_limit: u64) -> Self {
self.0.insert("user_limit", Value::Number(Number::from(user_limit)));
@@ -78,8 +78,8 @@ impl EditChannel {
///
/// This is for [text] and [voice] channels only.
///
- /// [text]: ../model/enum.ChannelType.html#variant.Text
- /// [voice]: ../model/enum.ChannelType.html#variant.Voice
+ /// [text]: ../model/channel/enum.ChannelType.html#variant.Text
+ /// [voice]: ../model/channel/enum.ChannelType.html#variant.Voice
pub fn category<C>(mut self, category: C) -> Self
where C: Into<Option<ChannelId>> {
let parent_id = match category.into() {