Function serenity::http::send_files [] [src]

pub fn send_files<'a, T>(
    channel_id: u64,
    files: Vec<T>,
    map: Map<String, Value>
) -> Result<Message> where
    T: Into<AttachmentType<'a>>, 

Sends file(s) to a channel.

Errors

Returns an HttpError::InvalidRequest(PayloadTooLarge) if the file is too large to send.