Skip to content

Commit 5ed8ae1

Browse files
committed
make ResolvedUnfurledMediaItem fields optional
1 parent b45cea9 commit 5ed8ae1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/model/application/component.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,15 @@ pub struct ResolvedUnfurledMediaItem {
194194
/// The url of this item.
195195
pub url: FixedString<u16>,
196196
/// The proxied discord url.
197-
pub proxy_url: FixedString<u16>,
197+
pub proxy_url: Option<FixedString<u16>>,
198198
/// The width of the media item.
199-
pub width: NonMaxU32,
199+
pub width: Option<NonMaxU32>,
200200
/// The height of the media item.
201-
pub height: NonMaxU32,
201+
pub height: Option<NonMaxU32>,
202202
/// The content type of the media item.
203-
pub content_type: FixedString,
203+
pub content_type: Option<FixedString>,
204204
/// The loading state of the item, declaring if it has fully loaded yet.
205-
pub loading_state: UnfurledMediaItemLoadingState,
205+
pub loading_state: Option<UnfurledMediaItemLoadingState>,
206206
}
207207

208208
#[cfg(feature = "unstable")]

0 commit comments

Comments
 (0)