Functionalities
Other
$mentionedEveryoneCount
Returns the number of times @everyone is used in the message.

FUNCTION USAGE

  • $mentionedEveryoneCount
  • $mentionedEveryoneCount[content]

Properties:

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