Latest
interface DiscordAttachment
import { type DiscordAttachment } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/fileloader/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.

import DiscordAttachment
import { DiscordAttachment } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/fileloader/deps.ts";