aboutsummaryrefslogtreecommitdiff
path: root/src/client/context.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-05 16:32:42 -0700
committerAustin Hellyer <[email protected]>2016-11-05 16:32:42 -0700
commitaab12ec36bda78121e1c4de4bc48822bd2b5d8a5 (patch)
tree5d58844781983b6c43003838ad7a0fac0f03bdbe /src/client/context.rs
parentSupport major parameters in ratelimits (diff)
downloadserenity-aab12ec36bda78121e1c4de4bc48822bd2b5d8a5.tar.xz
serenity-aab12ec36bda78121e1c4de4bc48822bd2b5d8a5.zip
Fix doc links to enum variants
Most of the docs were linking to `enum.EnumName.html#VariantName.v`, which should have been linking to `enum.EnumName.html#variant.VariantName`.
Diffstat (limited to 'src/client/context.rs')
-rw-r--r--src/client/context.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/context.rs b/src/client/context.rs
index ef314eb..22bcf1d 100644
--- a/src/client/context.rs
+++ b/src/client/context.rs
@@ -63,7 +63,7 @@ impl Context {
/// # Errors
///
/// Returns a
- /// [ClientError::InvalidOperationAsBot](../enum.ClientError.html#InvalidOperationAsUser.v)
+ /// [ClientError::InvalidOperationAsBot](../enum.ClientError.html#variant.InvalidOperationAsUser)
/// if this is a bot.
pub fn ack_message<C, M>(&self, channel_id: C, message_id: M) -> Result<()>
where C: Into<ChannelId>, M: Into<MessageId> {
@@ -101,7 +101,7 @@ impl Context {
/// # Errors
///
/// Returns a
- /// [ClientError::DeleteMessageDaysAmount](./enum.ClientError.html#DeleteMessageDaysAmount.v)
+ /// [ClientError::DeleteMessageDaysAmount](./enum.ClientError.html#variant.DeleteMessageDaysAmount)
/// if the number of days given is over the maximum allowed.
pub fn ban_user<G, U>(&self, guild_id: G, user_id: U, delete_message_days: u8)
-> Result<()> where G: Into<GuildId>, U: Into<UserId> {
@@ -672,7 +672,7 @@ impl Context {
/// # Errors
///
/// Returns a
- /// [ClientError::InvalidOperationAsUser](../enum.ClientError.html#InvalidOperationAsUser.v)
+ /// [ClientError::InvalidOperationAsUser](../enum.ClientError.html#variant.InvalidOperationAsUser)
/// if this is a user.
pub fn get_message<C, M>(&self, channel_id: C, message_id: M)
-> Result<Message> where C: Into<ChannelId>, M: Into<MessageId> {