aboutsummaryrefslogtreecommitdiff
path: root/src/model/webhook.rs
diff options
context:
space:
mode:
authorErk- <[email protected]>2018-08-09 20:34:33 +0200
committerzeyla <[email protected]>2018-08-09 11:34:33 -0700
commit40053a71931bb63c43eb6f469ee3c94383c9e90a (patch)
tree79c2fabc1229d0543205bc6daf8ebebc6ebc9755 /src/model/webhook.rs
parent[routing] Fix various incorrect routes. (#364) (diff)
downloadserenity-40053a71931bb63c43eb6f469ee3c94383c9e90a.tar.xz
serenity-40053a71931bb63c43eb6f469ee3c94383c9e90a.zip
Fix all the dead links in the docs
Diffstat (limited to 'src/model/webhook.rs')
-rw-r--r--src/model/webhook.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/model/webhook.rs b/src/model/webhook.rs
index 68d6012..fca70fe 100644
--- a/src/model/webhook.rs
+++ b/src/model/webhook.rs
@@ -33,7 +33,7 @@ pub struct Webhook {
///
/// This can be modified via [`ExecuteWebhook::avatar`].
///
- /// [`ExecuteWebhook::avatar`]: ../builder/struct.ExecuteWebhook.html#method.avatar
+ /// [`ExecuteWebhook::avatar`]: ../../builder/struct.ExecuteWebhook.html#method.avatar
pub avatar: Option<String>,
/// The Id of the channel that owns the webhook.
pub channel_id: ChannelId,
@@ -43,7 +43,7 @@ pub struct Webhook {
///
/// This can be modified via [`ExecuteWebhook::username`].
///
- /// [`ExecuteWebhook::username`]: ../builder/struct.ExecuteWebhook.html#method.username
+ /// [`ExecuteWebhook::username`]: ../../builder/struct.ExecuteWebhook.html#method.username
pub name: Option<String>,
/// The webhook's secure token.
pub token: String,
@@ -60,7 +60,7 @@ impl Webhook {
/// As this calls the [`http::delete_webhook_with_token`] function,
/// authentication is not required.
///
- /// [`http::delete_webhook_with_token`]: ../http/fn.delete_webhook_with_token.html
+ /// [`http::delete_webhook_with_token`]: ../../http/fn.delete_webhook_with_token.html
#[inline]
pub fn delete(&self) -> Result<()> { http::delete_webhook_with_token(self.id.0, &self.token) }
@@ -108,8 +108,8 @@ impl Webhook {
/// let _ = webhook.edit(None, Some(&image)).expect("Error editing");
/// ```
///
- /// [`http::edit_webhook`]: ../http/fn.edit_webhook.html
- /// [`http::edit_webhook_with_token`]: ../http/fn.edit_webhook_with_token.html
+ /// [`http::edit_webhook`]: ../../http/fn.edit_webhook.html
+ /// [`http::edit_webhook_with_token`]: ../../http/fn.edit_webhook_with_token.html
pub fn edit(&mut self, name: Option<&str>, avatar: Option<&str>) -> Result<()> {
if name.is_none() && avatar.is_none() {
return Ok(());
@@ -205,7 +205,7 @@ impl Webhook {
/// As this calls the [`http::get_webhook_with_token`] function,
/// authentication is not required.
///
- /// [`http::get_webhook_with_token`]: ../http/fn.get_webhook_with_token.html
+ /// [`http::get_webhook_with_token`]: ../../http/fn.get_webhook_with_token.html
pub fn refresh(&mut self) -> Result<()> {
match http::get_webhook_with_token(self.id.0, &self.token) {
Ok(replacement) => {
@@ -224,7 +224,7 @@ impl WebhookId {
///
/// **Note**: Requires the [Manage Webhooks] permission.
///
- /// [Manage Webhooks]: permissions/constant.MANAGE_WEBHOOKS.html
+ /// [Manage Webhooks]: ../../model/permissions/struct.Permissions.html#associatedconstant.MANAGE_WEBHOOKS
#[inline]
pub fn get(self) -> Result<Webhook> { http::get_webhook(self.0) }
}