Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denocordts/src/types/mod.ts>APIAttachment

An Object Oriented Discord API wrapper for Deno.
Latest
interface APIAttachment
Re-export
import { type APIAttachment } from "https://deno.land/x/denocordts@1.2.0/src/types/mod.ts";

Properties

Attachment id

filename: string

Name of file attached

optional
description: string

Description for the file

optional
content_type: string

The attachment's media type

See https://en.wikipedia.org/wiki/Media_type

size: number

Size of file in bytes

url: string

Source url of file

proxy_url: string

A proxied url of file

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