Message - antilandjs/antiland.js GitHub Wiki
The message object.
extends BaseStructure
Properties
User
.author :The author of the message.
string
.content :The content of the message.
boolean • readonly
.deletable :Whether this message can be deleted by the client user.
Dialogue | null • readonly
.dialogue :The channel in which the message was sent.
string
.dialogueId :The ID of the channel in which the message was sent.
Array | null • readonly
.edits :A list of previous versions of the message content.
LoverManager
.lovers :The cache manager for users that loved this message.
string
.originalContent :The original text content of the message.
Message | null • readonly
.reference :The reference message.
string
.referenceId :The ID of the message being replied to.
Methods
Promise<object>
.delete() :Delete the message.
Promise<object>
.edit(content) :Edit the message.
Name | Type | Optional |
---|---|---|
content | string | No |
Promise<object?>
.like() :Send love to the message author for the message.
Promise<object>
.reply(content) :Reply to the message.
Name | Type | Optional |
---|---|---|
content | string | No |
Promise<object?>
.translate() :Translate the message.