Skip to content

$channelLastMessageID

$channelLastMessageID will return the last message ID sent in the channel, if one was sent.

Usage

$channelLastMessageID[channelID?]

Parameters

FieldTypeDescriptionRequired
channelID?numberThe ID of the channel.false

Example(s)

This will return the last message ID sent in the channel, if one was sent:

1
client.command({
2
name: "channelLastMessageID",
3
code: `$channelLastMessageID[$channelID]`
4
});