mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +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 */
|
/** A url or attachment */
|
||||||
media: DiscordUnfurledMediaItem;
|
media: DiscordUnfurledMediaItem;
|
||||||
/** Alt text for the media, max 1024 characters */
|
/** 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` */
|
/** Whether the thumbnail should be a spoiler (or blurred out). Defaults to `false` */
|
||||||
spoiler?: boolean;
|
spoiler?: boolean;
|
||||||
}
|
}
|
||||||
@@ -477,7 +477,7 @@ export interface DiscordMediaGalleryItem {
|
|||||||
/** A url or attachment */
|
/** A url or attachment */
|
||||||
media: DiscordUnfurledMediaItem;
|
media: DiscordUnfurledMediaItem;
|
||||||
/** Alt text for the media, max 1024 characters */
|
/** 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` */
|
/** Whether the media should be a spoiler (or blurred out). Defaults to `false` */
|
||||||
spoiler?: boolean;
|
spoiler?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -365,7 +365,7 @@ export interface ThumbnailComponent extends BaseComponent {
|
|||||||
/** A url or attachment */
|
/** A url or attachment */
|
||||||
media: DiscordUnfurledMediaItem;
|
media: DiscordUnfurledMediaItem;
|
||||||
/** Alt text for the media */
|
/** Alt text for the media */
|
||||||
description?: string;
|
description?: string | null;
|
||||||
/** Whether the thumbnail should be a spoiler (or blurred out). Defaults to `false` */
|
/** Whether the thumbnail should be a spoiler (or blurred out). Defaults to `false` */
|
||||||
spoiler?: boolean;
|
spoiler?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user