Skip to main content
Module

x/discordeno/mod.ts>DiscordAttachment

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