Skip to content

Files

A File component displays an attached file in Components V2. It can sit at message level or inside a Container. It is not a general website link or an upload control.

Editable messageOpen in editor
Pokkan
PokkanAPP

Workshop notes

A File component refers to an attachment. The file must be supplied by the sender, not just named here.

workshop-notes.pdf

Click the file area to edit its attachment reference, such as attachment://workshop-notes.pdf. That name must match an attachment supplied with the message. Typing it does not supply the file bytes or make an arbitrary local document available to Discord.

Use the spoiler control to hide the file presentation until revealed. The reference remains in the message. The optional Component ID is in More actions (…).

Pokkan’s current browser Send flow does not upload multipart attachments, so it cannot deliver this example by itself. Keep the Kit or export its Discord payload for a compatible sender that also supplies the attachment. For a downloadable resource already on a website, a Link Button may be the appropriate choice.

See Attachments and replies for the distinction between the message attachment data and a V2 File component.