$byteCount
Returns the amount of bytes in the provided “Text”.
Syntax
$byteCount[Text]
We recommend using this function to add limits to variables instead of $charCount[], since variables use bit limits, not characters!
$nomention
$onlyIf[$byteCount[$message]<500;Character limit has reached!]
New value for variable set!
$setUserVar[Text;$message]
How
$onlyIf[],$messageand$setUserVar[]works?
Parameters
Text(Type: String || Flag: Emptiable): The text to return the byte count for.
Example
$nomention
Your message has $byteCount[$message] bytes.
How $message works?
🤖 Playground
Here you can understand how this function works.
Input:
$byteCount[]Output:
Your message has 4 bytes