fix(types): Set nullable for ThumbnailComponent & MediaGalleryItem description (#4737)

This commit is contained in:
Fleny
2026-02-16 07:38:30 +05:30
committed by GitHub
parent cf26d35f29
commit b5248bfa2c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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;
} }
+1 -1
View File
@@ -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;
} }