Type Alias FileMeta

FileMeta: {
    collection?: Snowflake;
    creationTime: number;
    creationTimeDate: Date;
    id: Snowflake;
    openGraphProperties?: FileOptions["openGraphProperties"];
    size: number;
    url: Url;
    viewable: boolean;
    views: number;
}

Represents the meta data of a file. It's similar to FileData but contains more information.

Type declaration

  • Optionalcollection?: Snowflake

    ID of the collection this file belongs to.

  • creationTime: number

    Unix timestamp of when this file was created.

  • creationTimeDate: Date

    Date object of which represents when this file was created.

  • id: Snowflake

    ID of the file.

  • OptionalopenGraphProperties?: FileOptions["openGraphProperties"]

    Open Graph Properties for this file.

  • size: number

    Size of the file in bytes.

  • url: Url

    URL of the file.

  • viewable: boolean

    If this file is viewable or not.

  • views: number

    The amount of views this file has.