aboutsummaryrefslogtreecommitdiff
path: root/src/http/mod.rs
diff options
context:
space:
mode:
authorMaid Dog <[email protected]>2018-03-11 03:00:01 -0500
committerZeyla Hellyer <[email protected]>2018-05-27 18:16:11 -0700
commit8e2d86f43beb060f8fadc0cb970e976370891c9d (patch)
tree2bc7630734bfcb508700dc600371777c72888aa6 /src/http/mod.rs
parentVoice fixes, better API adherence, bitrate control, documentation (diff)
downloadserenity-8e2d86f43beb060f8fadc0cb970e976370891c9d.tar.xz
serenity-8e2d86f43beb060f8fadc0cb970e976370891c9d.zip
Permit sending files through the `CreateMessage` builder.
Diffstat (limited to 'src/http/mod.rs')
-rw-r--r--src/http/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/mod.rs b/src/http/mod.rs
index a80f53a..c664d59 100644
--- a/src/http/mod.rs
+++ b/src/http/mod.rs
@@ -1938,6 +1938,7 @@ fn verify(expected: u16, response: HyperResponse) -> Result<()> {
}
/// Enum that allows a user to pass a `Path` or a `File` type to `send_files`
+#[derive(Clone, Debug)]
pub enum AttachmentType<'a> {
/// Indicates that the `AttachmentType` is a byte slice with a filename.
Bytes((&'a [u8], &'a str)),