diff options
| author | Austin Hellyer <[email protected]> | 2017-01-24 08:07:35 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2017-01-24 08:07:35 -0800 |
| commit | c050c59da25b9093a75bda22baa81be3b267c688 (patch) | |
| tree | 58ed199225cfefac295b49dc230f751cd220e332 /src/client | |
| parent | Rename 'webhooks' methods to 'get_webhooks' (diff) | |
| download | serenity-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.rs | 2 |
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)?; |