aboutsummaryrefslogtreecommitdiff
path: root/src/http/routing.rs
diff options
context:
space:
mode:
authorMishio595 <[email protected]>2018-08-17 10:06:27 -0600
committerMishio595 <[email protected]>2018-08-17 10:06:27 -0600
commit270e21a563daddb8690dd0246c2b696793bf104c (patch)
treee147c6c4a6de590744bcad34428a4fd4b69c4a85 /src/http/routing.rs
parentFix routing for http::create_private_channel (diff)
downloadserenity-routing-fixes.tar.xz
serenity-routing-fixes.zip
Correct the endpoint for bulk-delete to POST from DELETErouting-fixes
Diffstat (limited to 'src/http/routing.rs')
-rw-r--r--src/http/routing.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/routing.rs b/src/http/routing.rs
index 52be61c..d1d4bc6 100644
--- a/src/http/routing.rs
+++ b/src/http/routing.rs
@@ -1045,7 +1045,7 @@ impl<'a> RouteInfo<'a> {
Cow::from(Route::channel_message(channel_id, message_id)),
),
RouteInfo::DeleteMessages { channel_id } => (
- LightMethod::Delete,
+ LightMethod::Post,
Route::ChannelsIdMessagesBulkDelete(channel_id),
Cow::from(Route::channel_messages_bulk_delete(channel_id)),
),