Functionalities
Other
$messageAuthorID
Returns the ID of a user that sent the defined message. Provide the channel ID and message ID.

FUNCTION USAGE

  • $messageAuthorID[channelID;messageID]

Properties:

channelID - Channel ID of where the message ID is located. messageID - The message ID in the channel corresponding with the inputted channel ID.

Example: Returning the authorID of a message in the current channel

1
bot.Command({
2
name: "author-of-msg",
3
code: `
4
$messageAuthorID[$channelID[];$message[1]]
5
`
6
})
Copied!

Example 2: Returning the authorID of a message in another channel

1
bot.Command({
2
name: "author-of-msg",
3
code: `
4
$messageAuthorID[$findChannel[$message[1]];$messageSlice[>1]]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: