v5.0.0
$cropText
This function crops the given text

Fields

This function has 2 required fields
  1. 1.
    Text (Required)
  2. 2.
    Limit (Required)
  3. 3.
    Char To Split (Optional)
  4. 4.
    Append (Optional)
Raw Usage: $cropText[text;limit;charToSplit (optional);append (optional)]

Options

  • Text - The text we're cropping
  • Limit - The max length of the cropped text
  • Char To Split- The specified pivot to crop the text
  • Append - The text to append if text is longer than the limit

Usage

Without optional fields
1
bot.command({
2
name: 'crop',
3
code: `$cropText[hello i am iron man;100]`
4
})
Copied!
With optional fields
1
bot.command({
2
name: 'crop',
3
code: `$cropText[hello i am iron man;100;z;yes]`
4
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub