Skip to main content
Module

x/revoltio/mod.ts>Message

No-nonsense Revolt library for nodejs and deno.
Latest
class Message
extends Base
Re-export
import { Message } from "https://deno.land/x/revoltio@v1.0.0/mod.ts";

Constructors

new
Message(client: Client, data: API.Message)

Properties

attachments: API.File[]
readonly
author: User | null
authorId: string
readonly
channel: TextChannel | DMChannel | GroupChannel
channelId: string
content: string
readonly
createdAt: Date
readonly
createdTimestamp: number
readonly
editedAt: Date | null
editedTimestamp: number | null
embeds: Embed[]
readonly
member: ServerMember | null
mentions: Mentions
readonly
server: Server | null
readonly
serverId: string | null
readonly
system: boolean
type: Uppercase<API.SystemMessage["type"]>
readonly
url: string

Methods

protected
_patch(data: API.Message): this
ack(): Promise<void>
delete(): Promise<void>
edit(options: MessageEditOptions | string): Promise<void>
fetch(): Promise<Message>
inServer(): this is this & { serverId: string; server: Server; channel: TextChannel; }
reply(content: string, mention?): Promise<Message>
toString(): string