seyfert
    Preparing search index...

    Class Thumbnail

    Represents a thumbnail component builder. Used to display a small image preview, often alongside other content.

    const thumbnail = new Thumbnail()
    .setMedia('https://example.com/thumbnail.jpg')
    .setDescription('A cool thumbnail');

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    data: Partial<TYPE> = {}

    Methods

    • Sets the description for the thumbnail.

      Parameters

      • description: undefined | string

        The description text. Can be undefined to remove the description.

      Returns Thumbnail

      The updated Thumbnail instance.

    • Sets whether the thumbnail should be visually marked as a spoiler.

      Parameters

      • spoiler: boolean = true

        Whether the thumbnail is a spoiler (defaults to true).

      Returns Thumbnail

      The updated Thumbnail instance.