seyfert
    Preparing search index...

    Class AttachmentBuilder

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    data: Partial<AttachmentData> = ...

    The partial attachment data.

    Accessors

    Methods

    • Sets the description of the attachment.

      Parameters

      • desc: string

        The description of the attachment.

      Returns this

      The Attachment instance.

      attachment.setDescription('This is an example attachment');
      
    • Sets the name of the attachment.

      Parameters

      • name: string

        The name of the attachment.

      Returns this

      The Attachment instance.

      attachment.setName('example.jpg');
      
    • Sets whether the attachment is a spoiler.

      Parameters

      • spoiler: boolean

        Whether the attachment is a spoiler.

      Returns this

      The Attachment instance.

      attachment.setSpoiler(true);