Class ChapterInternal

This class represents the most abstract version of a MangaDex object, containing only the ID of the object. This is mostly used for instanceOf checks.

Hierarchy

Implements

Constructors

Properties

chapter: null | string

The chapter number for this chapter

createdAt: Date

When this chapter was created

externalUrl: null | string

Url to this chapter if it's an external chapter

groups: Relationship<Group>[]

Array of relationships to the groups that translated this chapter

id: string

The MangaDex UUID of this chapter

isExternal: boolean

Is this chapter an external chapter? If it is, this chapter will have an externalUrl

A relationship to the manga this chapter belongs to

pages: number

The number of pages in this chapter

publishAt: Date

When this chapter was originally published

readableAt: Date

When was / when will this chapter be readable?

title: null | string

The title of this chapter

translatedLanguage: string

The language of this chapter

updatedAt: Date

When this chapter was last updated

uploader: Relationship<User>

Relationship to the user who uploaded this chapter

version: number

The version of this chapter (incremented by updating chapter data)

volume: null | string

The manga volume this chapter belongs to

Methods

  • Returns an array of image URLs for this chapter's pages. Once an image is requested, if the host is from MangaDex(at)Home, please report if it succeeds or fails by using reportPageURL.

    Parameters

    • saver: boolean = false

      If true, the URLs will be for the compressed data-saver images (if available).

    • forcePort: boolean = false

      If true, the URLs will be forced to be on port 443.

    Returns Promise<string[]>

  • Delete this chapter

    Parameters

    • id: string

    Returns Promise<void>

  • Retrieves a chapter object by its UUID

    Parameters

    • id: string
    • Optional expandedTypes: ("user" | "manga" | "scanlation_group")[]

    Returns Promise<Chapter>

Generated using TypeDoc