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