Skip to main content
Module

x/harmony/mod.ts>Message

An easy to use Discord API Library for Deno.
Latest
class Message
extends SnowflakeBase
Re-export
import { Message } from "https://deno.land/x/harmony@v2.9.0/mod.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.

startThread(options: CreateThreadOptions): Promise<ThreadChannel>
unpinMessage(): Promise<void>
updateRefs(): Promise<void>