diff options
| author | Zeyla Hellyer <[email protected]> | 2018-01-31 14:56:12 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-01-31 14:56:56 -0800 |
| commit | 8578d5fe6e3bdc2842cda9417c242169f93b1a99 (patch) | |
| tree | ba5ce74c82510f5d3b6b490b09eb5e6d2de77ca1 /src/voice | |
| parent | Add create message builder example (#268) (diff) | |
| download | serenity-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/voice')
| -rw-r--r-- | src/voice/handler.rs | 18 | ||||
| -rw-r--r-- | src/voice/manager.rs | 4 |
2 files changed, 4 insertions, 18 deletions
diff --git a/src/voice/handler.rs b/src/voice/handler.rs index 8113d94..82e117c 100644 --- a/src/voice/handler.rs +++ b/src/voice/handler.rs @@ -40,25 +40,16 @@ use super::{Audio, AudioReceiver, AudioSource, Status as VoiceStatus, threading, pub struct Handler { /// The ChannelId to be connected to, if any. /// - /// Note that when connected to a voice channel, while the `ChannelId` will - /// not be `None`, the [`guild_id`] can, in the event of [`Group`] or - /// 1-on-1 [`Call`]s. - /// /// **Note**: This _must not_ be manually mutated. Call [`switch_to`] to /// mutate this value. /// - /// [`Call`]: ../../model/struct.Call.html - /// [`Group`]: ../../model/struct.Group.html + /// [`Group`]: ../../model/channel/struct.Group.html /// [`guild`]: #structfield.guild /// [`switch_to`]: #method.switch_to pub channel_id: Option<ChannelId>, /// The voice server endpoint. pub endpoint: Option<String>, - /// The GuildId to be connected to, if any. Can be normally `None` in the - /// event of playing audio to a one-on-one [`Call`] or [`Group`]. - /// - /// [`Call`]: ../../model/struct.Call.html - /// [`Group`]: ../../model/struct.Group.html + /// The Id of the guild to be connected to. pub guild_id: GuildId, /// Whether the current handler is set to deafen voice connections. /// @@ -193,11 +184,6 @@ impl Handler { } /// Connect - or switch - to the given voice channel by its Id. - /// - /// **Note**: This is not necessary for [`Group`] or direct [call][`Call`]s. - /// - /// [`Call`]: ../../model/struct.Call.html - /// [`Group`]: ../../model/struct.Group.html pub fn join(&mut self, channel_id: ChannelId) { self.channel_id = Some(channel_id); diff --git a/src/voice/manager.rs b/src/voice/manager.rs index 79f469a..b4b36b0 100644 --- a/src/voice/manager.rs +++ b/src/voice/manager.rs @@ -16,9 +16,9 @@ use super::Handler; /// If a `guild_id` is provided, then the target is the guild, as a user /// can not be connected to two channels within one guild simultaneously. /// -/// [`Group`]: ../../model/struct.Group.html +/// [`Group`]: ../../model/channel/struct.Group.html /// [`Handler`]: struct.Handler.html -/// [guild's channel]: ../../model/enum.ChannelType.html#variant.Voice +/// [guild's channel]: ../../model/channel/enum.ChannelType.html#variant.Voice /// [`Shard`]: ../gateway/struct.Shard.html #[derive(Clone, Debug)] pub struct Manager { |