Type Alias FileData

FileData: {
    delete: (() => Promise<string>);
    deletionToken: DeletionToken;
    deletionUrl: Url;
    getMeta: (() => Promise<FileMeta>);
    id: Snowflake;
    thumbnail: Url;
    url: Url;
}

A file but with less data associated with it.

Type declaration

  • delete: (() => Promise<string>)

    Function to delete this file.

      • (): Promise<string>
      • Returns Promise<string>

  • deletionToken: DeletionToken

    The deletion token of this file.

  • deletionUrl: Url

    The deletion url of this file.

  • getMeta: (() => Promise<FileMeta>)

    Function to get the meta data of this file.

  • id: Snowflake

    The ID of this file.

  • thumbnail: Url

    Thumbnail url of the uploaded file.

  • url: Url

    The url of this file.