aboutsummaryrefslogtreecommitdiff
path: root/src/http
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-11 22:13:57 +0200
committeracdenisSK <[email protected]>2017-07-11 22:13:57 +0200
commitebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6 (patch)
tree1eeee881705d8721cdb4238461e5422043a63ca1 /src/http
parentAdd a way to add multiple fields at once (diff)
downloadserenity-ebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6.tar.xz
serenity-ebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6.zip
Remove the deprecated functions
It's already been enough time for people to migrate
Diffstat (limited to 'src/http')
-rw-r--r--src/http/mod.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/http/mod.rs b/src/http/mod.rs
index 382f264..781e64a 100644
--- a/src/http/mod.rs
+++ b/src/http/mod.rs
@@ -1397,24 +1397,6 @@ pub fn remove_group_recipient(group_id: u64, user_id: u64) -> Result<()> {
user_id))
}
-/// Sends a file to a channel.
-///
-/// # Errors
-///
-/// Returns an
-/// [`HttpError::InvalidRequest(PayloadTooLarge)`][`HttpError::InvalidRequest`]
-/// if the file is too large to send.
-///
-/// [`HttpError::InvalidRequest`]: enum.HttpError.html#variant.InvalidRequest
-#[deprecated(since="0.2.0", note="Please use `send_files` instead.")]
-pub fn send_file<R: Read>(channel_id: u64, mut file: R, filename: &str, map: JsonMap)
- -> Result<Message> {
- let mut bytes = vec![];
- file.read_to_end(&mut bytes)?;
-
- send_files(channel_id, vec![AttachmentType::Bytes((&bytes, filename))], map)
-}
-
/// Sends file(s) to a channel.
///
/// # Errors