Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oasis/packages/deps.ts>DiscordAttachment

An object oriented Discordeno framework
Latest
interface DiscordAttachment
Re-export
import { type DiscordAttachment } from "https://deno.land/x/oasis@2.1.0/packages/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
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.