diff options
| author | Zeyla Hellyer <[email protected]> | 2017-09-05 08:25:33 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-09-05 08:25:33 -0700 |
| commit | dbcb3514f20409b3c4c4054fe51aaa2bd1792b96 (patch) | |
| tree | f57ba8387f3c4bf16d1ed1ebc8568ee6916479b7 /src/http | |
| parent | Allow commands to be limited to certain roles (#157) (diff) | |
| download | serenity-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.rs | 2 |
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 ), ) |