aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2017-01-24 08:07:35 -0800
committerAustin Hellyer <[email protected]>2017-01-24 08:07:35 -0800
commitc050c59da25b9093a75bda22baa81be3b267c688 (patch)
tree58ed199225cfefac295b49dc230f751cd220e332 /src/client
parentRename 'webhooks' methods to 'get_webhooks' (diff)
downloadserenity-c050c59da25b9093a75bda22baa81be3b267c688.tar.xz
serenity-c050c59da25b9093a75bda22baa81be3b267c688.zip
Change rest::execute_webhooks to a POST
Diffstat (limited to 'src/client')
-rw-r--r--src/client/rest/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/rest/mod.rs b/src/client/rest/mod.rs
index fd4cc2f..aed12ef 100644
--- a/src/client/rest/mod.rs
+++ b/src/client/rest/mod.rs
@@ -872,7 +872,7 @@ pub fn execute_webhook(webhook_id: u64, token: &str, map: Value)
let body = serde_json::to_string(&map)?;
let client = HyperClient::new();
let response = retry(|| client
- .patch(&format!(api!("/webhooks/{}/{}"), webhook_id, token))
+ .post(&format!(api!("/webhooks/{}/{}"), webhook_id, token))
.body(&body))
.map_err(Error::Hyper)?;