From 1929b663cbc12c0b908e53c1ccff058af7446cee Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Wed, 11 Jun 2025 01:15:10 +0200 Subject: [PATCH 1/2] fix: CV2 File Display Component is missing name & size Signed-off-by: Lala Sabathil --- docs/components/reference.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/components/reference.mdx b/docs/components/reference.mdx index b8812ea8dc..b151554866 100644 --- a/docs/components/reference.mdx +++ b/docs/components/reference.mdx @@ -1033,6 +1033,8 @@ To use this component, you need to send the [message flag](/docs/resources/messa | id? | integer | Optional identifier for component | | file | [unfurled media item](/docs/components/reference#unfurled-media-item-structure) | This unfurled media item is unique in that it **only** supports attachment references using the `attachment://` syntax | | spoiler? | boolean | Whether the media should be a spoiler (or blurred out). Defaults to `false` | +| name\* | string | The name of the file. This field is ignored and provided by the API as part of the response | +| size\* | integer | The size of the file in bytes. This field is ignored and provided by the API as part of the response | ###### Example From dfdd67d070ed8b90c3d0e5b7df07a9705812f8bd Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Thu, 12 Jun 2025 23:53:54 +0200 Subject: [PATCH 2/2] Update docs/components/reference.mdx Co-authored-by: Anthony --- docs/components/reference.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/components/reference.mdx b/docs/components/reference.mdx index b151554866..082719721f 100644 --- a/docs/components/reference.mdx +++ b/docs/components/reference.mdx @@ -1033,8 +1033,8 @@ To use this component, you need to send the [message flag](/docs/resources/messa | id? | integer | Optional identifier for component | | file | [unfurled media item](/docs/components/reference#unfurled-media-item-structure) | This unfurled media item is unique in that it **only** supports attachment references using the `attachment://` syntax | | spoiler? | boolean | Whether the media should be a spoiler (or blurred out). Defaults to `false` | -| name\* | string | The name of the file. This field is ignored and provided by the API as part of the response | -| size\* | integer | The size of the file in bytes. This field is ignored and provided by the API as part of the response | +| name | string | The name of the file. This field is ignored and provided by the API as part of the response | +| size | integer | The size of the file in bytes. This field is ignored and provided by the API as part of the response | ###### Example