Skip to content

$cropText

$cropText is used to crop given text.

Usage

$cropText[text;limit;start?]

Parameters

FieldTypeDescriptionRequired
textstringText you want to slice.true
limitnumberLimit of the cropped text/will start to crop any text coming after that.true
start?numberWhere cropping should start.false

Example(s)

This will return bye and remove hello and from the given text:

1
client.command({
2
name: "cropText",
3
code: `
4
$cropText[hello and bye;20;9]
5
`
6
});