Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Attachment

Attachment Structure, used for [Message] objects

Hierarchy

Index

Constructors

constructor

Properties

_keys

_keys: BaseSet<string> = keysAttachment

client

client: ShardClient

filename

filename: string = ""

height

height: number = 0

id

id: string = ""

message

message: Message

Optional proxyUrl

proxyUrl: undefined | string

size

size: number = 0

Optional url

url: undefined | string

width

width: number = 0

Accessors

classType

  • get classType(): string
  • Returns string

createdAt

  • get createdAt(): Date
  • Returns Date

createdAtUnix

  • get createdAtUnix(): number
  • Returns number

extension

  • get extension(): string
  • Returns string

hasSpoiler

  • get hasSpoiler(): boolean
  • Returns boolean

isAudio

  • get isAudio(): boolean
  • Returns boolean

isEmbeddable

  • get isEmbeddable(): boolean
  • Returns boolean

isImage

  • get isImage(): boolean
  • Returns boolean

isVideo

  • get isVideo(): boolean
  • Returns boolean

mimetype

  • get mimetype(): string
  • Returns string

shardId

  • get shardId(): number
  • Returns number

Methods

[inspect.custom]

  • [inspect.custom](): object

_getFromSnake

  • _getFromSnake(key: string): any
  • Parameters

    • key: string

    Returns any

_setFromSnake

  • _setFromSnake(key: string, value: any): any
  • Parameters

    • key: string
    • value: any

    Returns any

difference

  • difference(key: string, value: any): [boolean, any]
  • Parameters

    • key: string
    • value: any

    Returns [boolean, any]

differences

merge

mergeValue

  • mergeValue(key: string, value: any): void
  • Parameters

    • key: string
    • value: any

    Returns void

toJSON

  • toJSON(): object
  • Returns object

toString

  • toString(): string
  • Returns string

Generated using TypeDoc