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

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

An easy to use Discord API Library for Deno.
Latest
class MessageAttachment
import { MessageAttachment } from "https://deno.land/x/harmony@v2.9.1/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