$cropText

Crops the provided text. If text is cropped then the ending is added at the end of the text.

Syntax

$cropText[Text;Max characters;Ending]

Parameters

  • Text (Type: String || Flag: Emptiable): The text to crop.
  • Max characters (Type: Integer || Flag: Required): The maximum amount of characters. Subsequent characters are removed.
  • Ending (Type: String || Flag: Emptiable): The text to end the cropped text with (if the text was cropped).

Example

$nomention
$cropText[$message;50;...]
!example Hello everyone! This message is very cool. 😎 We hope you enjoy coding in BDFD, bye! Hello everyone! This message is very cool. 😎 We ho...