Functionalities
Other
$mentionedUserCount
Returns the amount of user mentions used in the message or command. Useful for anti spam.

FUNCTION USAGE

  • $mentionedUserCount[content]

Properties:

content - The content the bot will read while looking for user mentions.

Example 1: Returns the number 1. Since one user was mentioned in the message.

1
bot.Command({
2
name: "test",
3
code: `
4
$mentionedUserCount[Hey @Speshul, when will you update the package again?]
5
`
6
})
Copied!

Example 2: Returns the number 0. Since no users were mentioned in the message.

1
bot.Command({
2
name: "test",
3
code: `
4
$mentionedUserCount[Who is Speshul?]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: