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

This commit is contained in:
Fleny
2026-02-16 03:08:30 +01:00
committed by GitHub
parent cf26d35f29
commit b5248bfa2c
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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;
}