class FileComponent
extends
Component<APIFileComponent>export class FileComponent extends Component<APIFileComponent>
Represents a file component
readonlyReadonly<APIFileComponent> data :
The API data associated with this component
Inherited from: Component
readonlyUnfurledMediaItem file :
The media associated with this file
readonlyboolean spoiler :
Whether this thumbnail is spoilered
equalsother: this | APIFileComponent) : boolean (
other: this | APIFileComponent
Whether or not the given components are equal
Inherited from: Component
toJSONAPIFileComponent () :
Returns the API-compatible JSON for this component