Functionalities
Other
$mentionedHereCount
Returns the number of times @here is used in the message.

FUNCTION USAGE

  • $mentionedHereCount
  • $mentionedHereCount[content]

Properties:

content - The content the bot will read while looking for @here mentions. If no brackets are used, the function will look thru arguments in the command/message.
Example 1: Returns the number 1. Since one @here was used in the message.
1
bot.Command({
2
name: "test",
3
code: `
4
$mentionedHereCount[How's everyone doing @here?]
5
`
6
})
Copied!
Example 2: Returns the number 0. Since no @here was used in the message.
1
bot.Command({
2
name: "test",
3
code: `
4
$mentionedHereCount[How's everyone doing here?]
5
`
6
})
Copied!
Last modified 6mo ago
Copy link
Contents
Properties: