Functionalities
Other
$lastMessageChannelID
Returns the channel ID location of the last message sent by a user.

FUNCTION USAGE

  • $lastMessageChannelID
  • $lastMessageChannelID[]
  • $lastMessageChannelID[userID]

Properties:

[] - Leave the 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 channel ID location of the command author.

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

Example 2: Returns the channel ID location of the provided user ID.

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