aboutsummaryrefslogtreecommitdiff
path: root/src/http
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-09-05 08:25:33 -0700
committerZeyla Hellyer <[email protected]>2017-09-05 08:25:33 -0700
commitdbcb3514f20409b3c4c4054fe51aaa2bd1792b96 (patch)
treef57ba8387f3c4bf16d1ed1ebc8568ee6916479b7 /src/http
parentAllow commands to be limited to certain roles (#157) (diff)
downloadserenity-dbcb3514f20409b3c4c4054fe51aaa2bd1792b96.tar.xz
serenity-dbcb3514f20409b3c4c4054fe51aaa2bd1792b96.zip
Update deprecated bulk delete endpoint
The bulk delete endpoint of `/channels/:channel_id/messages/bulk_delete` was deprecated a while ago and was modified to `/channels/:channel_id/messages/bulk-delete`. New endpoint docs: <https://discordapp.com/developers/docs/resources/channel#bulk-delete-messages> Deprecated endpoint docs: <https://discordapp.com/developers/docs/resources/channel#bulk-delete-messages-deprecated>
Diffstat (limited to 'src/http')
-rw-r--r--src/http/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/mod.rs b/src/http/mod.rs
index 1478d8e..03e249c 100644
--- a/src/http/mod.rs
+++ b/src/http/mod.rs
@@ -492,7 +492,7 @@ pub fn delete_messages(channel_id: u64, map: &Value) -> Result<()> {
request!(
Route::ChannelsIdMessagesBulkDelete(channel_id),
post(body),
- "/channels/{}/messages/bulk_delete",
+ "/channels/{}/messages/bulk-delete",
channel_id
),
)