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;
42 properties3 methods15 inheritedsrc/structures/attachment.ts:123

Constructor

Properties

application?
any
optional
client
readonly
Inherited from BaseStructure.client
clipCreatedAt?
string
optional
clipParticipants?
any[]
optional
contentScanVersion?
number
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 ''
originalContentType?
string
optional
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
containsExplicitMedia
boolean
get
containsGoreContent
boolean
get
containsSelfHarmContent
boolean
get
createdAt
Date
get
createdAtUnix
number
get
expiresAt
Date | null
get

When the signed cdn url stops working, from its ex query parameter (hex unix seconds)

expiresAtUnix
number
get
extension
string
get
hasSpoiler
boolean
get
hasTimelineComments
boolean
get
isAnimated
boolean
get
isAudio
boolean
get
isClip
boolean
get
isClone
boolean
get
Inherited from BaseStructure.isClone
isEmbeddable
boolean
get
isExpired
boolean
get
isImage
boolean
get
isRemix
boolean
get
isThumbnail
boolean
get
isVideo
boolean
get
mimetype
string
get
shardId
number
get
Inherited from BaseStructure.shardId

Methods