diff options
| author | Maid Dog <[email protected]> | 2018-03-11 03:00:01 -0500 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-05-27 18:16:11 -0700 |
| commit | 8e2d86f43beb060f8fadc0cb970e976370891c9d (patch) | |
| tree | 2bc7630734bfcb508700dc600371777c72888aa6 /src/http | |
| parent | Voice fixes, better API adherence, bitrate control, documentation (diff) | |
| download | serenity-8e2d86f43beb060f8fadc0cb970e976370891c9d.tar.xz serenity-8e2d86f43beb060f8fadc0cb970e976370891c9d.zip | |
Permit sending files through the `CreateMessage` builder.
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/mod.rs | 1 |
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)), |