class FileComponent
extends
Component<APIFileComponent>export class FileComponent extends Component<APIFileComponent>Represents a file component
readonlydata : Readonly<APIFileComponent>
The API data associated with this component
Inherited from: Component
readonlyfile : UnfurledMediaItem
The media associated with this file
readonlyspoiler : boolean
Whether this thumbnail is spoilered
equals(other: this | APIFileComponent) : boolean
other: this | APIFileComponent
Whether or not the given components are equal
Inherited from: Component
toJSON() : APIFileComponent
Returns the API-compatible JSON for this component