From e572664633079e62f458c5638b0fcf3697924950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?cel=20=F0=9F=8C=B8?= Date: Fri, 23 Jun 2023 14:32:42 +0100 Subject: [PATCH] Add audio to MediaType enum --- entities/src/attachment.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entities/src/attachment.rs b/entities/src/attachment.rs index 541494a..48d6f4c 100644 --- a/entities/src/attachment.rs +++ b/entities/src/attachment.rs @@ -71,6 +71,9 @@ pub enum MediaType { /// A video file. #[serde(rename = "video")] Video, + /// An audio file. + #[serde(rename = "audio")] + Audio, /// A gifv format file. #[serde(rename = "gifv")] Gifv,