Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
interface DiscordAttachment
Re-export
import { type DiscordAttachment } from "https://deno.land/x/discordeno@17.2.0/template/minimal/deps.ts";

Properties

filename: string

Name of file attached

optional
content_type: string

The attachment's media type

size: number

Size of file in bytes

url: string

Source url of file

proxy_url: string

A proxied url of file

id: string

Attachment id

optional
description: string

description for the file (max 1024 characters)

optional
height: number | null

Height of file (if image)

optional
width: number | null

Width of file (if image)

optional
ephemeral: boolean

whether this attachment is ephemeral. Ephemeral attachments will automatically be removed after a set period of time. Ephemeral attachments on messages are guaranteed to be available as long as the message itself exists.