Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Attachment

Hierarchy

  • Attachment

Index

Constructors

constructor

Properties

Protected data

data: Attachment

Accessors

contentType

  • get contentType(): string

filename

  • get filename(): string

height

  • get height(): number

id

  • get id(): string

proxyUrl

  • get proxyUrl(): string

size

  • get size(): number

url

  • get url(): string

width

  • get width(): number

Methods

download

  • download(path?: string): Promise<void>

get

  • get(): Promise<Blob>
  • Attachment#Get Fetch a discord attachment and get its url from a discord channel.

    Returns Promise<Blob>

    url of the file