$containsCustomEmoji
Returns `true` if the content contains a custom emoji. Otherwise, function returns `false`.

FUNCTION USAGE

  • $containsCustomEmoji[content]

Property:

content - The content the function will search through.

Example 1: Returns true if the content contains a custom emoji.

1
bot.Command({
2
name: "test",
3
code: `
4
$containsCustomEmoji[$message[]]
5
`
6
})
Copied!

Example 2: Returns false since these are not custom emojis.

1
bot.Command({
2
name: "test",
3
code: `
4
$containsCustomEmoji[It's good to see you 😀]
5
`
6
})
Copied!
Last modified 7mo ago
Copy link
Contents
Property: