Skip to main content
Module

x/discord_api_types/payloads/v8/channel.ts>APIAttachment

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface APIAttachment
Deprecated
Deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

import { type APIAttachment } from "https://deno.land/x/discord_api_types@0.37.11/payloads/v8/channel.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