diff options
| author | Austin Hellyer <[email protected]> | 2017-01-24 12:07:41 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2017-01-24 12:07:41 -0800 |
| commit | 94131908f00a8cbb714f3a93066e2a83dfc1c5b3 (patch) | |
| tree | 86cb349c3093ab9722ae47a649deebe8da9d6c13 /src/ext | |
| parent | Properly drop on binds (diff) | |
| download | serenity-94131908f00a8cbb714f3a93066e2a83dfc1c5b3.tar.xz serenity-94131908f00a8cbb714f3a93066e2a83dfc1c5b3.zip | |
Fix docs links
Diffstat (limited to 'src/ext')
| -rw-r--r-- | src/ext/cache/mod.rs | 5 | ||||
| -rw-r--r-- | src/ext/framework/configuration.rs | 14 | ||||
| -rw-r--r-- | src/ext/framework/create_command.rs | 4 | ||||
| -rw-r--r-- | src/ext/framework/mod.rs | 5 | ||||
| -rw-r--r-- | src/ext/mod.rs | 7 |
5 files changed, 16 insertions, 19 deletions
diff --git a/src/ext/cache/mod.rs b/src/ext/cache/mod.rs index 6d68bf9..b6a32cd 100644 --- a/src/ext/cache/mod.rs +++ b/src/ext/cache/mod.rs @@ -1,7 +1,7 @@ -//! A cache of events received over a [`Shard`], where storing at least some +//! A cache of events received over a `Shard`, where storing at least some //! data from the event is possible. //! -//! This acts as a hot cache, to avoid making requests over the REST API through +//! This acts as a cache, to avoid making requests over the REST API through //! the [`rest`] module where possible. All fields are public, and do not have //! getters, to allow you more flexibility with the stored data. However, this //! allows data to be "corrupted", and _may or may not_ cause misfunctions @@ -72,7 +72,6 @@ //! [`Message`]: ../../model/struct.Message.html //! [`PublicChannel`]: ../../model/struct.PublicChannel.html //! [`Role`]: ../../model/struct.Role.html -//! [`Shard`]: ../../client/gateway/struct.Shard.html //! [`client::CACHE`]: ../../client/struct.CACHE.html //! [`rest`]: ../../client/rest/index.html diff --git a/src/ext/framework/configuration.rs b/src/ext/framework/configuration.rs index 611775a..5448a25 100644 --- a/src/ext/framework/configuration.rs +++ b/src/ext/framework/configuration.rs @@ -192,7 +192,7 @@ impl Configuration { /// Message that's sent if a command is disabled. /// - /// %command% will be replaced with command name. + /// `%command%` will be replaced with command name. pub fn command_disabled_message(mut self, content: &str) -> Self { self.command_disabled_message = Some(content.to_owned()); @@ -224,7 +224,7 @@ impl Configuration { /// Message that's sent when a command is on cooldown. /// See framework documentation to see where is this utilized. /// - /// %time% will be replaced with waiting time in seconds. + /// `%time%` will be replaced with waiting time in seconds. pub fn rate_limit_message(mut self, content: &str) -> Self { self.rate_limit_message = Some(content.to_owned()); @@ -247,9 +247,9 @@ impl Configuration { /// Message that's sent when user sends too few arguments to a command. /// - /// %min% will be replaced with minimum allowed amount of arguments. + /// `%min%` will be replaced with minimum allowed amount of arguments. /// - /// %given% will be replced with the given amount of arguments. + /// `%given%` will be replced with the given amount of arguments. pub fn not_enough_args_message(mut self, content: &str) -> Self { self.not_enough_args_message = Some(content.to_owned()); @@ -292,7 +292,7 @@ impl Configuration { self } - /// HashSet of user Ids checks won't apply to. + /// A `HashSet` of user Ids checks won't apply to. pub fn owners(mut self, user_ids: HashSet<UserId>) -> Self { self.owners = user_ids; @@ -317,9 +317,9 @@ impl Configuration { /// Message that's sent when user sends too many arguments to a command. /// - /// %max% will be replaced with maximum allowed amount of arguments. + /// `%max%` will be replaced with maximum allowed amount of arguments. /// - /// %given% will be replced with the given amount of arguments. + /// `%given%` will be replced with the given amount of arguments. pub fn too_many_args_message(mut self, content: &str) -> Self { self.too_many_args_message = Some(content.to_owned()); diff --git a/src/ext/framework/create_command.rs b/src/ext/framework/create_command.rs index 52a0793..357a597 100644 --- a/src/ext/framework/create_command.rs +++ b/src/ext/framework/create_command.rs @@ -94,7 +94,7 @@ impl CreateCommand { } /// A function that can be called when a command is received. - /// You can return Err(string) if there's an error. + /// You can return `Err(string)` if there's an error. /// /// See [`exec_str`] if you _only_ need to return a string on command use. /// @@ -110,7 +110,7 @@ impl CreateCommand { /// the internal HashMap of commands, used specifically for creating a help /// command. /// - /// You can return Err(string) if there's an error. + /// You can return `Err(string)` if there's an error. pub fn exec_help<F>(mut self, f: F) -> Self where F: Fn(&mut Context, &Message, HashMap<String, Arc<CommandGroup>>, Vec<String>) -> Result<(), String> + Send + Sync + 'static { self.0.exec = CommandType::WithCommands(Box::new(f)); diff --git a/src/ext/framework/mod.rs b/src/ext/framework/mod.rs index 988d3a3..e2a4479 100644 --- a/src/ext/framework/mod.rs +++ b/src/ext/framework/mod.rs @@ -1,5 +1,6 @@ -//! The framework is a customizable method of separating commands, used in -//! combination with [`Client::with_framework`]. +//! The framework is a customizable method of separating commands. +//! +//! This is used in combination with [`Client::with_framework`]. //! //! The framework has a number of configurations, and can have any number of //! commands bound to it. The primary purpose of it is to offer the utility of diff --git a/src/ext/mod.rs b/src/ext/mod.rs index ba46daf..6254539 100644 --- a/src/ext/mod.rs +++ b/src/ext/mod.rs @@ -1,5 +1,5 @@ -//! A set of extended functionality that is not required for a [`Client`] and/or -//! [`Shard`] to properly function. +//! A set of extended functionality that is not required for a `Client` and/or +//! `Shard` to properly function. //! //! These are flagged behind feature-gates and can be enabled and disabled. //! @@ -9,9 +9,6 @@ //! enabled (enabled by default), the cache requires the `cache` feature to be //! enabled (enabled by default), and voice support requires the `voice` feature //! to be enabled (disabled by default). -//! -//! [`Client`]: ../client/struct.Client.html -//! [`Shard`]: ../client/gateway/struct.Shard.html #[cfg(feature="cache")] pub mod cache; |