Constructs a new File component.
Optional initial data for the file component.
Sets the ID for the file component.
The ID to set.
The updated File instance.
Sets the media URL for the file.
The URL of the file to display.
The updated File instance.
Sets whether the file should be visually marked as a spoiler.
Whether the file is a spoiler (defaults to true).
The updated File instance.
Represents a file component builder. Used to display files within containers.
Example