Skip to main content
Module

x/discordeno/mod.ts>DiscordAttachment

Discord API library for Deno
Extremely Popular
Go to Latest
interface DiscordAttachment
Re-export
import { type DiscordAttachment } from "https://deno.land/x/discordeno@13.0.0-rc45/mod.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.