From 5d1be44a81acc547294753fb3a0e7b4145a9e255 Mon Sep 17 00:00:00 2001 From: advaith Date: Wed, 23 Apr 2025 02:41:15 -0700 Subject: [PATCH] update file component description --- docs/components/reference.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/components/reference.mdx b/docs/components/reference.mdx index fad13c59da..7915914e28 100644 --- a/docs/components/reference.mdx +++ b/docs/components/reference.mdx @@ -989,7 +989,9 @@ To use this component, you need to send the [message flag](/docs/resources/messa ## File -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. +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. + +Files are only available in messages. :::info 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.