Skip to content

Commit de3fe0b

Browse files
committed
make ResolvedUnfurledMediaItem fields optional
1 parent eaed274 commit de3fe0b

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
@@ -191,15 +191,15 @@ pub struct ResolvedUnfurledMediaItem {
191191
/// The url of this item.
192192
pub url: FixedString<u16>,
193193
/// The proxied discord url.
194-
pub proxy_url: FixedString<u16>,
194+
pub proxy_url: Option<FixedString<u16>>,
195195
/// The width of the media item.
196-
pub width: NonMaxU32,
196+
pub width: Option<NonMaxU32>,
197197
/// The height of the media item.
198-
pub height: NonMaxU32,
198+
pub height: Option<NonMaxU32>,
199199
/// The content type of the media item.
200-
pub content_type: FixedString,
200+
pub content_type: Option<FixedString>,
201201
/// The loading state of the item, declaring if it has fully loaded yet.
202-
pub loading_state: UnfurledMediaItemLoadingState,
202+
pub loading_state: Option<UnfurledMediaItemLoadingState>,
203203
}
204204

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

0 commit comments

Comments
 (0)