mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-21 02:40:08 +00:00
fix(types): Set nullable for ThumbnailComponent & MediaGalleryItem description (#4737)
This commit is contained in:
@@ -459,7 +459,7 @@ export interface DiscordThumbnailComponent extends DiscordBaseComponent {
|
||||
/** A url or attachment */
|
||||
media: DiscordUnfurledMediaItem;
|
||||
/** Alt text for the media, max 1024 characters */
|
||||
description?: string;
|
||||
description?: string | null;
|
||||
/** Whether the thumbnail should be a spoiler (or blurred out). Defaults to `false` */
|
||||
spoiler?: boolean;
|
||||
}
|
||||
@@ -477,7 +477,7 @@ export interface DiscordMediaGalleryItem {
|
||||
/** A url or attachment */
|
||||
media: DiscordUnfurledMediaItem;
|
||||
/** Alt text for the media, max 1024 characters */
|
||||
description?: string;
|
||||
description?: string | null;
|
||||
/** Whether the media should be a spoiler (or blurred out). Defaults to `false` */
|
||||
spoiler?: boolean;
|
||||
}
|
||||
|
||||
@@ -365,7 +365,7 @@ export interface ThumbnailComponent extends BaseComponent {
|
||||
/** A url or attachment */
|
||||
media: DiscordUnfurledMediaItem;
|
||||
/** Alt text for the media */
|
||||
description?: string;
|
||||
description?: string | null;
|
||||
/** Whether the thumbnail should be a spoiler (or blurred out). Defaults to `false` */
|
||||
spoiler?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user