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

FUNCTION USAGE

  • $mentionedChannelCount[content]

Properties:

content - The content the bot will read while looking for channel mentions.
Example 1: Returns the number 1. Since one channel was mentioned in the message.
1
bot.Command({
2
name: "test",
3
code: `
4
$mentionedRoleCount[Where's the #english-support channel in this server?]
5
`
6
})
Copied!
Example 2: Returns the number 0. Since no channels were mentioned in the message.
1
bot.Command({
2
name: "test",
3
code: `
4
$mentionedRoleCount[Who is the developer of the package?]
5
`
6
})
Copied!
Last modified 7mo ago
Copy link
Contents
Properties: