Functionalities
Other
$lastMessageID
Returns the message ID of the last message sent by a user.

FUNCTION USAGE

  • $lastMessageID
  • $lastMessageID[]
  • $lastMessageID[userID]

Properties:

[] - Leave brackets empty to return data for the command author. Same as no brackets. userID - Returns data from the provided user ID.

Example 1: Returns the message ID of the last message sent by the command author.

1
bot.Command({
2
name: "lastmsg",
3
code: `
4
msg ID - $lastMessageID[]
5
`
6
})
Copied!

Example 2: Returns the message ID of the last message sent by the provided user ID.

1
bot.Command({
2
name: "lastmsg",
3
code: `
4
msg ID - $lastMessageID[$findUser[$message[]]]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: