class Message
extends SnowflakeBase
import { Message } from "https://deno.land/x/harmony@v2.9.1/src/structures/message.ts";
Constructors
Properties
optional
activity: MessageActivityoptional
application: MessageApplicationattachments: Attachment[]
author: User
channel: TextChannel
components: MessageComponentData[]
readonly
createdAt: DatecreatedTimestamp: Date
optional
editedTimestamp: Dateembeds: Embed[]
optional
guild: Guildoptional
interaction: MessageInteractionoptional
member: Membermentions: MessageMentions
optional
messageReference: MessageReferencereactions: MessageReactionsManager
optional
stickerItems: MessageStickerItem[]Methods
addReaction(emoji: string | Emoji): Promise<void>
Adds a reaction to the message.
delete(): Promise<void>
Deletes the Message.
Edits this message.
pinMessage(): Promise<void>
readFromData(data: MessagePayload): void
removeReaction(emoji: string | Emoji, user?: User | Member | string): Promise<void>
Removes a reaction to the message.
Creates a Reply to this Message.
startThread(options: CreateThreadOptions): Promise<ThreadChannel>
unpinMessage(): Promise<void>
updateRefs(): Promise<void>