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

x/harmony/src/structures/message.ts>MessageAttachment

An easy to use Discord API Library for Deno.
Go to Latest
class MessageAttachment
import { MessageAttachment } from "https://deno.land/x/harmony@v2.8.0/src/structures/message.ts";

Message Attachment that can be sent while Creating Message

Constructors

new
MessageAttachment(
name: string,
blob: Blob | Uint8Array | string,
description?: string,
)

Properties

blob: Blob
optional
description: string
name: string

Methods

toJSON(): undefined

Static Methods

load(
path: string,
filename?: string,
description?: string,
): Promise<MessageAttachment>

Load an Message Attachment from local file or URL