File display component

file_display

Example scripts

A file display is a component that shows a file for downloading.

Schema fields #

Key Type Description
component String For file displays always file_display.
file File object The file to show.
name String The alternative name for the file.
spoiler Boolean Whether to show the file as a spoiler.