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

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

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

Constructors

new
Message(
client: Client,
channel: TextChannel,
author: User,
)

Properties

optional
activity: MessageActivity
optional
application: MessageApplication
attachments: Attachment[]
author: User
channel: TextChannel
channelID: string
components: MessageComponentData[]
content: string
readonly
createdAt: Date
createdTimestamp: Date
optional
editedTimestamp: Date
embeds: Embed[]
optional
flags: number
optional
guild: Guild
optional
guildID: string
id: string
optional
interaction: MessageInteraction
optional
member: Member
mentions: MessageMentions
optional
messageReference: MessageReference
optional
nonce: string | number
pinned: boolean
optional
stickerItems: MessageStickerItem[]
tts: boolean
type: number
readonly
url: string
optional
webhookID: string

Methods

addReaction(emoji: string | Emoji): Promise<void>

Adds a reaction to the message.

delete(): Promise<void>

Deletes the Message.

edit(content?: string | AllMessageOptions, option?: AllMessageOptions): Promise<Message>

Edits this message.

pinMessage(): Promise<void>
removeReaction(emoji: string | Emoji, user?: User | Member | string): Promise<void>

Removes a reaction to the message.

reply(content?: string | AllMessageOptions, option?: AllMessageOptions): Promise<Message>

Creates a Reply to this Message.

unpinMessage(): Promise<void>
updateRefs(): Promise<void>