diff options
| author | Erk- <[email protected]> | 2018-08-09 20:34:33 +0200 |
|---|---|---|
| committer | zeyla <[email protected]> | 2018-08-09 11:34:33 -0700 |
| commit | 40053a71931bb63c43eb6f469ee3c94383c9e90a (patch) | |
| tree | 79c2fabc1229d0543205bc6daf8ebebc6ebc9755 /src/model/guild/role.rs | |
| parent | [routing] Fix various incorrect routes. (#364) (diff) | |
| download | serenity-40053a71931bb63c43eb6f469ee3c94383c9e90a.tar.xz serenity-40053a71931bb63c43eb6f469ee3c94383c9e90a.zip | |
Fix all the dead links in the docs
Diffstat (limited to 'src/model/guild/role.rs')
| -rw-r--r-- | src/model/guild/role.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/guild/role.rs b/src/model/guild/role.rs index 53ec478..b66c0a0 100644 --- a/src/model/guild/role.rs +++ b/src/model/guild/role.rs @@ -50,7 +50,7 @@ pub struct Role { /// /// See the [`permissions`] module for more information. /// - /// [`permissions`]: permissions/index.html + /// [`permissions`]: ../permissions/index.html pub permissions: Permissions, /// The role's position in the position list. Roles are considered higher in /// hierarchy if their position is higher. @@ -65,7 +65,7 @@ impl Role { /// /// **Note** Requires the [Manage Roles] permission. /// - /// [Manage Roles]: permissions/constant.MANAGE_ROLES.html + /// [Manage Roles]: ../permissions/struct.Permissions.html#associatedconstant.MANAGE_ROLES #[cfg(feature = "cache")] #[inline] pub fn delete(&self) -> Result<()> { http::delete_role(self.find_guild()?.0, self.id.0) } @@ -87,7 +87,7 @@ impl Role { /// ``` /// /// [`Role`]: struct.Role.html - /// [Manage Roles]: permissions/constant.MANAGE_ROLES.html + /// [Manage Roles]: ../permissions/struct.Permissions.html#associatedconstant.MANAGE_ROLES #[cfg(all(feature = "builder", feature = "cache"))] pub fn edit<F: FnOnce(EditRole) -> EditRole>(&self, f: F) -> Result<Role> { self.find_guild() @@ -101,7 +101,7 @@ impl Role { /// Returns a [`ModelError::GuildNotFound`] if a guild is not in the cache /// that contains the role. /// - /// [`ModelError::GuildNotFound`]: enum.ModelError.html#variant.GuildNotFound + /// [`ModelError::GuildNotFound`]: ../error/enum.Error.html#variant.GuildNotFound #[cfg(feature = "cache")] pub fn find_guild(&self) -> Result<GuildId> { for guild in CACHE.read().guilds.values() { |