Skip to content

Commit 7629dee

Browse files
authored
update file component description (#7503)
1 parent 1bb9e46 commit 7629dee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/components/reference.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,9 @@ To use this component, you need to send the [message flag](/docs/resources/messa
989989

990990
## File
991991

992-
A File is a top-level component that allows you to display an [uploaded file](/docs/components/reference#uploading-a-file) as an attachment to the message and reference it in the component. Each file component can only display 1 attached file, but you can upload multiple files and add them to different file components within your payload. This is similar to the `embeds` field of a message but allows you to control the layout of your message by using this anywhere as a component. Files are only available in messages.
992+
A File is a top-level component that allows you to display an [uploaded file](/docs/components/reference#uploading-a-file) as an attachment to the message and reference it in the component. Each file component can only display 1 attached file, but you can upload multiple files and add them to different file components within your payload.
993+
994+
Files are only available in messages.
993995

994996
:::info
995997
To use this component, you need to send the [message flag](/docs/resources/message#message-object-message-flags) `1 << 15` (IS_COMPONENTS_V2) which can be activated on a per-message basis.

0 commit comments

Comments
 (0)