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

x/discord_rpc_deno/deps.ts>APIAttachment

port of @xhayper/discord-rpc to deno
Go to Latest
interface APIAttachment
Re-export
import { type APIAttachment } from "https://deno.land/x/discord_rpc_deno@1.0.8/deps.ts";

Properties

id: Snowflake

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