Skip to main content
Module

x/aether/mod.ts>Message

A Deno library to interface with the Discord API
Latest
class Message
extends Base
import { Message } from "https://deno.land/x/aether@v0.0.3/mod.ts";

Constructors

new
Message(
data: any,
channel: TextChannel,
client: Client,
)

Properties

args: string[]

Arguments of the message

attachments: MessageAttachment[]

Attachments of the message

author: User

User of the message

channel: TextChannel

Channel of the message

content: string

Content of the message

embeds: MessageEmbed[]

Embeds of the message

guild: Guild

Guild of the message (from channel)

guildID: string

Guild ID of the message

optional
member: Member

Member of the message

mentions: User[]

Mentions of the message

nonce: string | number

Nonce of the message

pinned: boolean

Whether the message is pinned

timestamp: number

Numeric timestamp of the message

tts: boolean

Whether the message is TTS (Text to Speech)

type: number

Numeric type of the message

Methods

delete(): Promise<boolean>

Method to delete the message

edit(content: MessageContent | string | MessageEmbed): Promise<Message>

Method to edit the message

pin(): Promise<void>

Method to pin the message

reply(content: MessageContent | string, id?: string): Promise<Message>

Method to reply to a user