detritus

Attachmentclass

Attachment Structure, used in [Message] or [Interaction] objects

On this page

Attachment Structure, used in [Message] or [Interaction] objects

import { Structures } from 'detritus-client';

Structures.Attachment;
30 properties2 methods15 inheritedsrc/structures/attachment.ts:121

Constructor

Properties

application?
any
optional
client
readonly
Inherited from BaseStructure.client
clipCreatedAt?
string
optional
clipParticipants?
any[]
optional
contentType?
string
optional
description?
string
optional
durationSecs?
number
optional
ephemeral
boolean
Default false
filename
string
Default ''
flags
number
Default 0
height
number
Default 0
id
string
Default ''
placeholder?
string
optional
placeholderVersion?
number
optional
proxyUrl
string
Default ''
size
number
Default 0
title?
string
optional
url
string
Default ''
waveform?
string
optional
width
number
Default 0

Accessors

classType
string
get
createdAt
Date
get
createdAtUnix
number
get
extension
string
get
hasSpoiler
boolean
get
isAudio
boolean
get
isClip
boolean
get
isClone
boolean
get
Inherited from BaseStructure.isClone
isEmbeddable
boolean
get
isImage
boolean
get
isVideo
boolean
get
mimetype
string
get
shardId
number
get
Inherited from BaseStructure.shardId

Methods