Skip to content

$getMessage

$getMessage will return properties about a given message.

Usage

$getMessage[channelID;messageID;option?]

Parameters

FieldTypeDescriptionRequired
channelIDnumberID of the channel where the message is located in.true
messageIDnumberThe ID of the message.true
option?stringWhich option to fetch.false

Options

TypeDescription
contentContent of the message.
userIDAuthor User ID.
usertagAuthor Discriminator.
usernameAuthor Username.

Example(s)

This will return the content of your sent message:

1
client.command({
2
name: "getMessage",
3
code: `
4
$getMessage[$channelID;$messageID;content]
5
`
6
});