Functionalities
Other
$mentioned
Returns the ID of a mentioned user.

FUNCTION USAGE

  • $mentioned[argNumber]
  • $mentioned[argNumber;yes]

Properties:

argNumber - Represents the mentioned argument position. yes - If the 2nd field is defined as yes and no mentions are found in the command message, the function returns the ID of the command author.

Example 1:

1
bot.Command({
2
name: "mentionid",
3
code: `
4
Here, you have the id of user you mentioned!: $mentioned[1]
5
`})
Copied!

Example 2:

1
bot.Command({
2
name: "mentionid",
3
code: `
4
Here, you have the id of user you mentioned!: $mentioned[1;yes]
5
`})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: